mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-10-01 01:35:57 -04: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
|
||
|
}
|