Skip to content

Commit

Permalink
Fixed rainbow mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aopell committed Jan 16, 2018
1 parent 925944e commit 4a7e1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function openOptionsMenu() {
let rainbowInterval = undefined;
let rainbowColor = 0;
function colorLoop() {
document.documentElement.style.setProperty("--color-hue", rainbowColor > 359 ? 0 : rainbowColor++);
document.documentElement.style.setProperty("--color-hue", rainbowColor > 359 ? (rainbowColor = 0) : rainbowColor++);
}

function rainbowMode(enable) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Schoology Plus",
"description": "Provides some enhancements to your LAUSD Schoology experience",
"version": "3.0.1",
"version": "3.0.2",
"icons": {
"128": "imgs/[email protected]",
"64": "imgs/[email protected]",
Expand Down

0 comments on commit 4a7e1db

Please sign in to comment.