diff --git a/js/usercss.js b/js/usercss.js index 720ac3fb..d8a5809d 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -222,11 +222,11 @@ var usercss = (() => { if (Array.isArray(state.value) && state.value.length) { // label may be placed anywhere result.units = (state.value.find(i => typeof i === 'string') || '').replace(/[\d.+-]/g, ''); - const range = state.value.filter(i => typeof i === 'number' || i == null); + const range = state.value.filter(i => typeof i === 'number' || i === null); result.default = range[0]; result.min = range[1]; result.max = range[2]; - result.step = range[3] == 0 ? 1 : range[3]; + result.step = range[3] === 0 ? 1 : range[3]; } break; }