From 9a64b4322adadbe18929c2da114eb0813426c4f9 Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Wed, 20 Oct 2021 10:49:47 +0530 Subject: chore: use 'window['ferdi']' (split out from pr #2092) (#2104) Co-authored-by: Markus Hatvan --- src/stores/GlobalErrorStore.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stores') diff --git a/src/stores/GlobalErrorStore.js b/src/stores/GlobalErrorStore.js index 7cbfdc608..9c851d6f2 100644 --- a/src/stores/GlobalErrorStore.js +++ b/src/stores/GlobalErrorStore.js @@ -64,7 +64,7 @@ export default class GlobalErrorStore extends Store { this.response = {}; } if (this.error.status === 401) { - window.ferdi.stores.app.authRequestFailed = true; + window['ferdi'].stores.app.authRequestFailed = true; // this.actions.user.logout({ serverLogout: true }); } } @@ -78,10 +78,10 @@ export default class GlobalErrorStore extends Store { }, error: this.error, response: this.response, - server: window.ferdi.stores.settings.app.server, + server: window['ferdi'].stores.settings.app.server, }); } else { - window.ferdi.stores.app.authRequestFailed = false; + window['ferdi'].stores.app.authRequestFailed = false; } }); } -- cgit v1.2.3-54-g00ecf