mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 18:30:57 -05:00
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>
This commit is contained in:
parent
57c47a65dd
commit
8b69013ebd
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue