cleanup debugg data

This commit is contained in:
David E. Perez Negron R. 2024-06-25 21:23:59 -06:00
parent a7345e90dd
commit d761e6dc64
1 changed files with 0 additions and 2 deletions

View File

@ -54,14 +54,12 @@
: "light");
document.documentElement.dataset.theme = theme;
document.getElementById("theme-logo").src = theme === "dark" ? darkLogo : lightLogo;
console.log("lightLogo:", ligthLogo, "darkLogo:", darkLogo);
function changeTheme() {
theme = theme === "dark" ? "light" : "dark";
localStorage.setItem("theme", theme);
document.documentElement.dataset.theme = theme;
document.getElementById("theme-logo").src = theme === "dark" ? darkLogo : lightLogo;
console.log("lightLogo:", ligthLogo, "darkLogo:", darkLogo);
}
</script>
<button class="button" onclick="changeTheme()">