aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-07 15:50:23 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-07 15:50:23 +0200
commite7a74514c1e7c3833dfdcf5900cb87f9e6e8354e (patch)
treeb8314e4155503b135dcb07e8b4a0e847e25c19cf /src/stores/AppStore.js
parentUpdate CHANGELOG.md (diff)
parentUpdate CHANGELOG.md (diff)
downloadferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.tar.gz
ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.tar.zst
ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.zip
Merge branch 'master' of https://github.com/meetfranz/franz into franz-5.3.0
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js13
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({