diff --git a/js/all.js b/js/all.js index 81f8c37..466209f 100644 --- a/js/all.js +++ b/js/all.js @@ -525,7 +525,7 @@ document.querySelector("#header > header > nav > ul:nth-child(2)").prepend(creat document.documentElement.setAttribute("modern", newVal); trackEvent("modern-theme-toggle", newVal, "Navbar Button"); }, - dataset: { popup: Setting.getNestedValue("popup", "modernThemeToggle", true) } + dataset: { popup: Setting.getNestedValue("popup", "modernThemeToggle", true) && (localStorage.getItem("popup.modernThemeToggle") !== "false") } }, [ createElement("div", ["explanation-popup"], {}, [ @@ -536,6 +536,7 @@ document.querySelector("#header > header > nav > ul:nth-child(2)").prepend(creat e.stopPropagation(); trackEvent("modern-theme-toggle", "ok", "Explanation Popup"); Setting.setNestedValue("popup", "modernThemeToggle", false); + localStorage.setItem("popup.modernThemeToggle", "false"); document.getElementById("darktheme-toggle-navbar-button").dataset.popup = false; } }) diff --git a/manifest.json b/manifest.json index c571ffd..bee24cf 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,7 @@ "update_url": "https://schoologypl.us/firefox_updates.json" } }, - "version": "7.4.1", + "version": "7.4.2", "icons": { "128": "imgs/icon@128.png", "64": "imgs/icon@64.png",