diff options
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 2bfcdf640..61b63d52e 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -95,6 +95,7 @@ export default class AppStore extends Store { | |||
95 | this._offlineCheck.bind(this), | 95 | this._offlineCheck.bind(this), |
96 | this._setLocale.bind(this), | 96 | this._setLocale.bind(this), |
97 | this._muteAppHandler.bind(this), | 97 | this._muteAppHandler.bind(this), |
98 | this._handleFullScreen.bind(this), | ||
98 | ]); | 99 | ]); |
99 | } | 100 | } |
100 | 101 | ||
@@ -347,6 +348,8 @@ export default class AppStore extends Store { | |||
347 | this.locale = this._getDefaultLocale(); | 348 | this.locale = this._getDefaultLocale(); |
348 | } | 349 | } |
349 | 350 | ||
351 | moment.locale(this.locale); | ||
352 | |||
350 | debug(`Set locale to "${this.locale}"`); | 353 | debug(`Set locale to "${this.locale}"`); |
351 | } | 354 | } |
352 | 355 | ||
@@ -367,6 +370,16 @@ export default class AppStore extends Store { | |||
367 | } | 370 | } |
368 | } | 371 | } |
369 | 372 | ||
373 | _handleFullScreen() { | ||
374 | const body = document.querySelector('body'); | ||
375 | |||
376 | if (this.isFullScreen) { | ||
377 | body.classList.add('isFullScreen'); | ||
378 | } else { | ||
379 | body.classList.remove('isFullScreen'); | ||
380 | } | ||
381 | } | ||
382 | |||
370 | // Helpers | 383 | // Helpers |
371 | _appStartsCounter() { | 384 | _appStartsCounter() { |
372 | this.actions.settings.update({ | 385 | this.actions.settings.update({ |