Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const themeStylesheet = document.getElementById("theme-stylesheet");
- if (themeStylesheet.getAttribute("href") === "light.css") {
- themeStylesheet.setAttribute("href", "dark.css");
- } else {
- themeStylesheet.setAttribute("href", "light.css");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement