mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-25 15:39:37 -05: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
|
|
}
|