aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-10-20 10:49:47 +0530
committerLibravatar GitHub <noreply@github.com>2021-10-20 10:49:47 +0530
commit9a64b4322adadbe18929c2da114eb0813426c4f9 (patch)
treee9dfa8b9e14b38720fa4487b7175ed26a8076da7 /src/stores
parent5.6.3-nightly.38 [skip ci] (diff)
downloadferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.tar.gz
ferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.tar.zst
ferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.zip
chore: use 'window['ferdi']' (split out from pr #2092) (#2104)
Co-authored-by: Markus Hatvan <markus_hatvan@aon.at>
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/GlobalErrorStore.js6
1 files changed, 3 insertions, 3 deletions
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 {
64 this.response = {}; 64 this.response = {};
65 } 65 }
66 if (this.error.status === 401) { 66 if (this.error.status === 401) {
67 window.ferdi.stores.app.authRequestFailed = true; 67 window['ferdi'].stores.app.authRequestFailed = true;
68 // this.actions.user.logout({ serverLogout: true }); 68 // this.actions.user.logout({ serverLogout: true });
69 } 69 }
70 } 70 }
@@ -78,10 +78,10 @@ export default class GlobalErrorStore extends Store {
78 }, 78 },
79 error: this.error, 79 error: this.error,
80 response: this.response, 80 response: this.response,
81 server: window.ferdi.stores.settings.app.server, 81 server: window['ferdi'].stores.settings.app.server,
82 }); 82 });
83 } else { 83 } else {
84 window.ferdi.stores.app.authRequestFailed = false; 84 window['ferdi'].stores.app.authRequestFailed = false;
85 } 85 }
86 }); 86 });
87} 87}