From d003ee1fe90c066379a59f264fcd5974f672afbe Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Thu, 28 Jul 2022 21:04:10 -0700 Subject: [PATCH 1/2] fix for theme toggle popup --- js/all.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/all.js b/js/all.js index 81f8c379..466209fa 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; } }) From 3ed34c91d4c3f0802c312cf38e75acac69127885 Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Thu, 28 Jul 2022 21:04:52 -0700 Subject: [PATCH 2/2] bump version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index c571ffd8..bee24cfe 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",