From 8b69013ebd043d4cee4cf7e379b3d5ce1c3e5a79 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sun, 25 Mar 2018 20:11:53 +0200 Subject: [PATCH] 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 --- public/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/index.js b/public/js/index.js index 68fb261..d76a37f 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