diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2021-10-20 10:49:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 10:49:47 +0530 |
commit | 9a64b4322adadbe18929c2da114eb0813426c4f9 (patch) | |
tree | e9dfa8b9e14b38720fa4487b7175ed26a8076da7 /src/models | |
parent | 5.6.3-nightly.38 [skip ci] (diff) | |
download | ferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.tar.gz ferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.tar.zst ferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.zip |
Co-authored-by: Markus Hatvan <markus_hatvan@aon.at>
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 !== '') { |