Skip to content

Commit 8b69013

Browse files
committed
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>
1 parent 57c47a6 commit 8b69013

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

public/js/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ $(document).ready(function () {
451451
// Re-enable nightmode
452452
if (store.get('nightMode') || Cookies.get('nightMode')) {
453453
$body.addClass('night')
454+
ui.toolbar.night.addClass('active')
454455
}
455456

456457
// showup

0 commit comments

Comments
 (0)