aboutsummaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/Service.js4
-rw-r--r--src/models/UserAgent.js2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/models/Service.js b/src/models/Service.js
index 12109fb0a..3cf0523c3 100644
--- a/src/models/Service.js
+++ b/src/models/Service.js
@@ -37,6 +37,8 @@ export default class Service {
37 37
38 @observable unreadIndirectMessageCount = 0; 38 @observable unreadIndirectMessageCount = 0;
39 39
40 @observable dialogTitle = '';
41
40 @observable order = DEFAULT_SERVICE_ORDER; 42 @observable order = DEFAULT_SERVICE_ORDER;
41 43
42 @observable isEnabled = true; 44 @observable isEnabled = true;
@@ -171,7 +173,7 @@ export default class Service {
171 ); 173 );
172 174
173 // Check if "Hibernate on Startup" is enabled and hibernate all services except active one 175 // Check if "Hibernate on Startup" is enabled and hibernate all services except active one
174 const { hibernateOnStartup } = window.ferdi.stores.settings.app; 176 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 177 // The service store is probably not loaded yet so we need to use localStorage data to get active service
176 const isActive = 178 const isActive =
177 window.localStorage.service && 179 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 !== '') {