summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorTinWoodman92 <chrhodgden@gmail.com>2023-12-23 11:31:11 -0600
committerTinWoodman92 <chrhodgden@gmail.com>2023-12-23 11:31:11 -0600
commit069a545a706622e073f5aa7e46557b1e560a64fc (patch)
tree4c574b9a4d2b09f1bc8af0b0cda5e3a510a133b5 /app.js
parentc07fa79f178e27ef16aeda15634555c60b6b695e (diff)
added dark mode media query
Diffstat (limited to 'app.js')
-rw-r--r--app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app.js b/app.js
index 333c354..ef71b3b 100644
--- a/app.js
+++ b/app.js
@@ -16,6 +16,7 @@ const initInput = function(styleVariable=null) {
document.documentElement.style.setProperty(styleVariable, initValue);
} else {
initValue = getComputedStyle(document.body).getPropertyValue(styleVariable);
+ initValue = Number(initValue);
};
const inputObject = document.getElementById(styleVariable);