diff --git a/src/js/loading.js b/src/js/loading.js index 718a6e0..ed387ef 100644 --- a/src/js/loading.js +++ b/src/js/loading.js @@ -1,7 +1,8 @@ (function(){ const canvasContent = localStorage.getItem("md-canvasContent"); const isDark = localStorage.getItem("md-darkmode"); - if (!isDark) document.body.classList.add("inverted"); + console.log(isDark) + if (!isDark && isDark !== null) document.body.classList.add("inverted"); if (!canvasContent) return; const parser = new DOMParser(); const doc = parser.parseFromString(canvasContent, "image/svg+xml");