@elliemae/pui-app-sdk 5.16.1 → 5.16.2

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.
@@ -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
  }
@@ -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
  }