From 925944e0e18ef1633292574fe7aee4f1b578c4f1 Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Mon, 15 Jan 2018 22:17:48 -0800 Subject: [PATCH] Settings display default values if none provided --- js/preload.js | 4 ++-- manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/preload.js b/js/preload.js index 6c4f9ea8..6ffc32ef 100644 --- a/js/preload.js +++ b/js/preload.js @@ -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) @@ -90,7 +90,7 @@ function updateSettings() { }, (value, element) => { rainbowMode(value); - element.value = value; + element.value = value || false; }, event => { if (event.target.value === "true") { diff --git a/manifest.json b/manifest.json index 51dcc234..325b1c47 100644 --- a/manifest.json +++ b/manifest.json @@ -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/icon@128.png", "64": "imgs/icon@64.png",