diff options
author | 2018-12-01 20:49:44 +0100 | |
---|---|---|
committer | 2018-12-01 20:49:44 +0100 | |
commit | 56f6da6b7c38dcd30e982e0007db919d8c1ba048 (patch) | |
tree | 4e2028e1cf7cf4707fb1e472386dcf94159352e0 | |
parent | Bump version to beta 19 (diff) | |
download | ferdium-app-56f6da6b7c38dcd30e982e0007db919d8c1ba048.tar.gz ferdium-app-56f6da6b7c38dcd30e982e0007db919d8c1ba048.tar.zst ferdium-app-56f6da6b7c38dcd30e982e0007db919d8c1ba048.zip |
Remove unnecessary code
-rw-r--r-- | src/stores/AppStore.js | 25 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 3 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 45335c488..6f156a96d 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -326,31 +326,6 @@ export default class AppStore extends Store { | |||
326 | defaultLocale, | 326 | defaultLocale, |
327 | fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale, | 327 | fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale, |
328 | }); | 328 | }); |
329 | |||
330 | // if (locales[locale] === undefined) { | ||
331 | // let localeFuzzy; | ||
332 | // Object.keys(locales).forEach((localStr) => { | ||
333 | // if (locales && Object.hasOwnProperty.call(locales, localStr)) { | ||
334 | // if (locale.substring(0, 2) === localStr.substring(0, 2)) { | ||
335 | // localeFuzzy = localStr; | ||
336 | // } | ||
337 | // } | ||
338 | // }); | ||
339 | |||
340 | // if (localeFuzzy !== undefined) { | ||
341 | // locale = localeFuzzy; | ||
342 | // } | ||
343 | // } | ||
344 | |||
345 | // if (locales[locale] === undefined) { | ||
346 | // locale = defaultLocale; | ||
347 | // } | ||
348 | |||
349 | // if (!locale) { | ||
350 | // locale = DEFAULT_APP_SETTINGS.fallbackLocale; | ||
351 | // } | ||
352 | |||
353 | // return locale; | ||
354 | } | 329 | } |
355 | 330 | ||
356 | _muteAppHandler() { | 331 | _muteAppHandler() { |
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 4a42ed924..f91ad5a12 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -180,9 +180,6 @@ export default class SettingsStore extends Store { | |||
180 | }, | 180 | }, |
181 | }); | 181 | }); |
182 | 182 | ||
183 | localStorage.removeItem('app'); | ||
184 | |||
185 | debug('Set up dark mode'); | ||
186 | } | 183 | } |
187 | } | 184 | } |
188 | 185 | ||