From 330f077473c2d2205faef5cf3549b7069b3fc935 Mon Sep 17 00:00:00 2001 From: Swissky <12152583+swisskyrepo@users.noreply.github.com> Date: Fri, 30 Sep 2022 17:34:57 +0200 Subject: [PATCH] Fix dm --- _includes/dark-mode.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_includes/dark-mode.html b/_includes/dark-mode.html index b6670bd..ef84361 100755 --- a/_includes/dark-mode.html +++ b/_includes/dark-mode.html @@ -5,12 +5,13 @@ function darkmode() { let enabled = localStorage.getItem('dark-mode') - if (enabled === null || enabled === 'true') { + if (enabled === null) { enable() } else if (localStorage.getItem('dark-mode') === 'false') { enable(); - } else { + } + else { disable(); }