diff options
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r-- | src/stores/SettingsStore.js | 16 |
1 files changed, 16 insertions, 0 deletions
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 | } |