Skip to content
Snippets Groups Projects
Verified Commit e814f0ac authored by tribut's avatar tribut :man_dancing:
Browse files

Apply dark mode preferences immediately

parent 472bc927
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@
userTheme === 'dark' || ((userTheme === 'auto') && window.matchMedia('(prefers-color-scheme: dark)').matches)
);
}
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
mediaQuery.addEventListener('change', applyDarkmode);
</script>
</head>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment