Skip to content

Commit

Permalink
Merge pull request #285 from aopell/develop
Browse files Browse the repository at this point in the history
Version 7.4.2
  • Loading branch information
aopell authored Jul 29, 2022
2 parents d191bdc + 3ed34c9 commit 9d85c5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"], {}, [
Expand All @@ -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;
}
})
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"update_url": "https://schoologypl.us/firefox_updates.json"
}
},
"version": "7.4.1",
"version": "7.4.2",
"icons": {
"128": "imgs/[email protected]",
"64": "imgs/[email protected]",
Expand Down

0 comments on commit 9d85c5e

Please sign in to comment.