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