mirror of
https://github.com/privacyguides/privacyguides.org
synced 2024-12-01 07:23:30 +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
|
|
}
|