Replace CRA SW with Vite SW and resolve PWA installation.
This commit is contained in:
@@ -9,15 +9,22 @@
|
||||
* @property { string | object | function } imex Return this prop if Rome.
|
||||
*/
|
||||
|
||||
export default function InstanceRenderManager({ executeFunction, rome, promanager, imex, debug }) {
|
||||
export default function InstanceRenderManager({
|
||||
executeFunction,
|
||||
rome,
|
||||
promanager,
|
||||
imex,
|
||||
debug,
|
||||
instance,
|
||||
}) {
|
||||
let propToReturn = null;
|
||||
|
||||
switch (import.meta.env.VITE_APP_INSTANCE) {
|
||||
switch (instance || import.meta.env.VITE_APP_INSTANCE) {
|
||||
case 'IMEX':
|
||||
propToReturn = imex;
|
||||
break;
|
||||
case 'ROME':
|
||||
propToReturn = rome; //TODO:AIO Implement USE_IMEX
|
||||
propToReturn = rome; //TODO:AIO Implement USE_IMEX
|
||||
break;
|
||||
case 'PROMANAGER':
|
||||
//Return the rome prop if USE_ROME.
|
||||
|
||||
Reference in New Issue
Block a user