mirror of
https://github.com/privacyguides/privacyguides.org
synced 2024-12-11 12:23:31 +01:00
7 lines
291 B
JavaScript
7 lines
291 B
JavaScript
if (localStorage.getItem("colorScheme") === "dark") {
|
|
document.querySelector("#dark-css").removeAttribute("media"); // Set dark theme
|
|
}
|
|
else if (localStorage.getItem("colorScheme") === "light") {
|
|
document.querySelector("#dark-css").setAttribute("media", "invalid"); // Set light theme
|
|
}
|