Skip to content

Commit

Permalink
Settings display default values if none provided
Browse files Browse the repository at this point in the history
  • Loading branch information
aopell committed Jan 16, 2018
1 parent 7381c66 commit 925944e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function updateSettings() {
{ min: 0, max: 359, value: 210 },
(value, element) => {
document.documentElement.style.setProperty("--color-hue", value || value === 0 ? value : 210);
element.value = value;
element.value = value || value === 0 ? value : 210;
},
event => document.documentElement.style.setProperty("--color-hue", event.target.value),
element => Number.parseInt(element.value)
Expand All @@ -90,7 +90,7 @@ function updateSettings() {
},
(value, element) => {
rainbowMode(value);
element.value = value;
element.value = value || false;
},
event => {
if (event.target.value === "true") {
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",
"version": "3.0.1",
"icons": {
"128": "imgs/[email protected]",
"64": "imgs/[email protected]",
Expand Down

0 comments on commit 925944e

Please sign in to comment.