EgwApp object need to be global / assigned to window.EgwApp

as that's how we iterate through all EgwApp instances for observer and push
This commit is contained in:
Ralf Becker 2021-06-11 15:21:18 +02:00
parent 78e30f1a27
commit f503f7139a
2 changed files with 4 additions and 0 deletions

View File

@ -1800,4 +1800,6 @@ export class EgwApp {
* we track all instances.
*/
EgwApp._instances = [];
// EgwApp need to be global on window, as it's used to iterate through all EgwApp instances
window.EgwApp = EgwApp;
//# sourceMappingURL=egw_app.js.map

View File

@ -2262,3 +2262,5 @@ export abstract class EgwApp
return EgwApp._instances[Symbol.iterator]();
}
}
// EgwApp need to be global on window, as it's used to iterate through all EgwApp instances
window.EgwApp = EgwApp;