diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Service.js | 2 | ||||
-rw-r--r-- | src/models/UserAgent.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index 12109fb0a..d94f55692 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -171,7 +171,7 @@ export default class Service { | |||
171 | ); | 171 | ); |
172 | 172 | ||
173 | // Check if "Hibernate on Startup" is enabled and hibernate all services except active one | 173 | // Check if "Hibernate on Startup" is enabled and hibernate all services except active one |
174 | const { hibernateOnStartup } = window.ferdi.stores.settings.app; | 174 | const { hibernateOnStartup } = window['ferdi'].stores.settings.app; |
175 | // The service store is probably not loaded yet so we need to use localStorage data to get active service | 175 | // The service store is probably not loaded yet so we need to use localStorage data to get active service |
176 | const isActive = | 176 | const isActive = |
177 | window.localStorage.service && | 177 | window.localStorage.service && |
diff --git a/src/models/UserAgent.js b/src/models/UserAgent.js index 02ff97db1..f971fb08a 100644 --- a/src/models/UserAgent.js +++ b/src/models/UserAgent.js | |||
@@ -37,7 +37,7 @@ export default class UserAgent { | |||
37 | if (typeof this.getUserAgent === 'function') { | 37 | if (typeof this.getUserAgent === 'function') { |
38 | return this.getUserAgent(); | 38 | return this.getUserAgent(); |
39 | } | 39 | } |
40 | const globalPref = window.ferdi.stores.settings.all.app.userAgentPref; | 40 | const globalPref = window['ferdi'].stores.settings.all.app.userAgentPref; |
41 | if (typeof globalPref === 'string') { | 41 | if (typeof globalPref === 'string') { |
42 | const trimmed = globalPref.trim(); | 42 | const trimmed = globalPref.trim(); |
43 | if (trimmed !== '') { | 43 | if (trimmed !== '') { |