Skip to content

Commit

Permalink
fix storage watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
mart2070 committed May 7, 2024
1 parent c8cc906 commit 81ef8cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tdx-enhanced.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name tdx-enhanced
// @namespace ecn
// @version 2024-05-06-02
// @version 2024-05-06-03
// @description enhanced tdx coloring & formatting. follows system color scheme.
// @author Purdue STEM IT - it@purdue.edu
// @match https://service.purdue.edu/TDNext/*
Expand Down Expand Up @@ -444,7 +444,9 @@

addEventListener("storage", (event) => {
console.log("Storage event:",event)
setColorMode(event.newValue)
if (event.key == "styles") {
setColorMode(event.newValue)
}
});
}

Expand Down

0 comments on commit 81ef8cf

Please sign in to comment.