diff --git a/dom.js b/dom.js index d302ba6e..1919d408 100644 --- a/dom.js +++ b/dom.js @@ -1,6 +1,6 @@ 'use strict'; -if (!/Windows/i.test(navigator.userAgent)) { +if (!navigator.userAgent.includes('Windows')) { document.documentElement.classList.add('non-windows'); } @@ -62,7 +62,6 @@ function enforceInputRange(element) { doNotify(); } }; - onChange({}); element.addEventListener('change', onChange); element.addEventListener('input', onChange); }