run eslint to fix most var instances

This commit is contained in:
dkanada 2020-10-07 21:12:14 +09:00
parent 24699c0aca
commit 39eddeb205
55 changed files with 614 additions and 614 deletions

View file

@ -14,14 +14,14 @@ import 'webcomponents';
if (window.MutationObserver) {
// create an observer instance
var observer = new MutationObserver(function (mutations) {
const observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
instance.setProgress(parseFloat(instance.getAttribute('data-progress') || '0'));
});
});
// configuration of the observer:
var config = { attributes: true, childList: false, characterData: false };
const config = { attributes: true, childList: false, characterData: false };
// pass in the target node, as well as the observer options
observer.observe(instance, config);

View file

@ -54,7 +54,7 @@ import 'emby-input';
// Snap to step
if (range.step !== 'any') {
var step = range.step || 1;
const step = range.step || 1;
value = Math.round(value / step) * step;
}