aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 6054e6721..315235ba4 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -94,6 +94,7 @@ export default class AppStore extends Store {
94 this._offlineCheck.bind(this), 94 this._offlineCheck.bind(this),
95 this._setLocale.bind(this), 95 this._setLocale.bind(this),
96 this._muteAppHandler.bind(this), 96 this._muteAppHandler.bind(this),
97 this._handleFullScreen.bind(this),
97 ]); 98 ]);
98 } 99 }
99 100
@@ -379,6 +380,16 @@ export default class AppStore extends Store {
379 } 380 }
380 } 381 }
381 382
383 _handleFullScreen() {
384 const body = document.querySelector('body');
385
386 if (this.isFullScreen) {
387 body.classList.add('isFullScreen');
388 } else {
389 body.classList.remove('isFullScreen');
390 }
391 }
392
382 // Helpers 393 // Helpers
383 _appStartsCounter() { 394 _appStartsCounter() {
384 this.actions.settings.update({ 395 this.actions.settings.update({