@elliemae/pui-app-sdk 5.16.1 → 5.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,6 +136,11 @@ class CMicroAppGuest {
|
|
|
136
136
|
else existingApps.push(app);
|
|
137
137
|
} else if (browserWindow.emui[this.appId].uuid === this.#uuid) {
|
|
138
138
|
browserWindow.emui[this.appId] = app;
|
|
139
|
+
} else if (typeof browserWindow.emui[this.appId].init === "undefined") {
|
|
140
|
+
browserWindow.emui[this.appId] = {
|
|
141
|
+
...browserWindow.emui[this.appId],
|
|
142
|
+
...app
|
|
143
|
+
};
|
|
139
144
|
} else {
|
|
140
145
|
browserWindow.emui[this.appId] = [
|
|
141
146
|
browserWindow.emui[this.appId],
|
|
@@ -181,6 +181,8 @@ const addAppToGlobalVariable = ({
|
|
|
181
181
|
}
|
|
182
182
|
if (Array.isArray(window.emui[id])) {
|
|
183
183
|
window.emui[id].push(newAppInstance);
|
|
184
|
+
} else if (typeof app.init === "undefined") {
|
|
185
|
+
window.emui[id] = { ...window.emui[id], ...newAppInstance };
|
|
184
186
|
} else {
|
|
185
187
|
window.emui[id] = [window.emui[id], newAppInstance];
|
|
186
188
|
}
|
|
@@ -103,6 +103,11 @@ class CMicroAppGuest {
|
|
|
103
103
|
else existingApps.push(app);
|
|
104
104
|
} else if (browserWindow.emui[this.appId].uuid === this.#uuid) {
|
|
105
105
|
browserWindow.emui[this.appId] = app;
|
|
106
|
+
} else if (typeof browserWindow.emui[this.appId].init === "undefined") {
|
|
107
|
+
browserWindow.emui[this.appId] = {
|
|
108
|
+
...browserWindow.emui[this.appId],
|
|
109
|
+
...app
|
|
110
|
+
};
|
|
106
111
|
} else {
|
|
107
112
|
browserWindow.emui[this.appId] = [
|
|
108
113
|
browserWindow.emui[this.appId],
|
|
@@ -168,6 +168,8 @@ const addAppToGlobalVariable = ({
|
|
|
168
168
|
}
|
|
169
169
|
if (Array.isArray(window.emui[id])) {
|
|
170
170
|
window.emui[id].push(newAppInstance);
|
|
171
|
+
} else if (typeof app.init === "undefined") {
|
|
172
|
+
window.emui[id] = { ...window.emui[id], ...newAppInstance };
|
|
171
173
|
} else {
|
|
172
174
|
window.emui[id] = [window.emui[id], newAppInstance];
|
|
173
175
|
}
|