From f503f7139abb91e734b2649acf633087f14d03d9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 11 Jun 2021 15:21:18 +0200 Subject: [PATCH] EgwApp object need to be global / assigned to window.EgwApp as that's how we iterate through all EgwApp instances for observer and push --- api/js/jsapi/egw_app.js | 2 ++ api/js/jsapi/egw_app.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/js/jsapi/egw_app.js b/api/js/jsapi/egw_app.js index 131865b240..d5c47fa73e 100644 --- a/api/js/jsapi/egw_app.js +++ b/api/js/jsapi/egw_app.js @@ -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 \ No newline at end of file diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index c65b345531..d60bd766fa 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -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; \ No newline at end of file