diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 1 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 752f287e8..3dba217b2 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -315,6 +315,7 @@ export default class ServicesStore extends Store { | |||
315 | customIcon: false, | 315 | customIcon: false, |
316 | isDarkModeEnabled: false, | 316 | isDarkModeEnabled: false, |
317 | spellcheckerLanguage: SPELLCHECKER_LOCALES[this.stores.settings.app.spellcheckerLanguage], | 317 | spellcheckerLanguage: SPELLCHECKER_LOCALES[this.stores.settings.app.spellcheckerLanguage], |
318 | userAgentPref: '', | ||
318 | }, serviceData); | 319 | }, serviceData); |
319 | 320 | ||
320 | let data = serviceData; | 321 | let data = serviceData; |
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 15b0db120..b433efd45 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -320,5 +320,21 @@ export default class SettingsStore extends Store { | |||
320 | }, | 320 | }, |
321 | }); | 321 | }); |
322 | } | 322 | } |
323 | |||
324 | if (!this.all.migration['user-agent-settings']) { | ||
325 | this.actions.settings.update({ | ||
326 | type: 'app', | ||
327 | data: { | ||
328 | userAgentPref: DEFAULT_APP_SETTINGS.userAgentPref, | ||
329 | }, | ||
330 | }); | ||
331 | |||
332 | this.actions.settings.update({ | ||
333 | type: 'migration', | ||
334 | data: { | ||
335 | 'user-agent-settings': true, | ||
336 | }, | ||
337 | }); | ||
338 | } | ||
323 | } | 339 | } |
324 | } | 340 | } |