diff options
Diffstat (limited to 'layout/_partial/scripts.ejs')
-rw-r--r-- | layout/_partial/scripts.ejs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index a242775..14348a9 100644 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -24,13 +24,14 @@ <script> window.addEventListener("load", () => { const theme_selector = (mode) => { - if (mode === SystemDarkmodePrefrence.dark) { + if (mode === SystemDarkmodePreference.dark) { document.getElementById("highlight-light-theme").setAttribute("disabled", "disabled"); document.getElementById("highlight-dark-theme").removeAttribute("disabled"); } else { document.getElementById("highlight-dark-theme").setAttribute("disabled", "disabled"); document.getElementById("highlight-light-theme").removeAttribute("disabled"); } + console.debug(`highlightjs theme set to ${mode}`); }; darklistener.add(theme_selector); }, false); |