From 069a545a706622e073f5aa7e46557b1e560a64fc Mon Sep 17 00:00:00 2001 From: TinWoodman92 Date: Sat, 23 Dec 2023 11:31:11 -0600 Subject: added dark mode media query --- app.js | 1 + 1 file changed, 1 insertion(+) (limited to 'app.js') 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); -- cgit v1.2.3