summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
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);