ensure really no cookies

This commit is contained in:
Christoph Cullmann 2022-10-21 22:04:10 +02:00
parent 8941b82fb5
commit d9364d2799
2 changed files with 4 additions and 3 deletions

View file

@ -28,7 +28,7 @@
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
//localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
@ -74,10 +74,10 @@
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
//localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
//localStorage.setItem("pref-theme", 'dark');
}
})

View file

@ -2,4 +2,5 @@ rm -rf themes
mkdir themes
git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1
rm -rf themes/PaperMod/.git*
sed -i s@localStorage.setItem@//localStorage.setItem@g themes/PaperMod/layouts/partials/footer.html
git add themes