Skip to content

Commit

Permalink
add saving theme to local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
happylolonly committed Sep 11, 2024
1 parent 7a5bc3b commit cfed816
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logseq/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if (document.querySelector("html").getAttribute("data-theme") === "light") {
document.querySelector("body").classList.remove("light-theme");
document.querySelector("body").classList.remove("white-theme");
document.querySelector("body").classList.add("dark-theme");

localStorage.setItem("theme", "dark");
}

document.querySelector(".journals-nav .flex-1").innerHTML = "Blog";

0 comments on commit cfed816

Please sign in to comment.