summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorSheogorath2018-03-25 20:11:53 +0200
committerSheogorath2018-03-25 20:12:02 +0200
commit8b69013ebd043d4cee4cf7e379b3d5ce1c3e5a79 (patch)
treee6d8e54557870f447f74ea69394a52046adb9fd3 /public/js/index.js
parent57c47a65dde59d355fba702bc91c63eebcc2533c (diff)
Fix night mode button after restore
The night mode toggle doesn't get the right state after restore from local storage. This results in the need to toggle twice to disable night mode. This patch adds the needed class so the toggleNightMode function gets the right state on execution. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 68fb2614..d76a37fe 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -451,6 +451,7 @@ $(document).ready(function () {
// Re-enable nightmode
if (store.get('nightMode') || Cookies.get('nightMode')) {
$body.addClass('night')
+ ui.toolbar.night.addClass('active')
}
// showup