code cosmetics

This commit is contained in:
tophf 2017-04-21 20:35:22 +03:00
parent 135423860d
commit e3c135e87e

3
dom.js
View File

@ -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);
}