diff --git a/src/controllers/shows/tvlatest.js b/src/controllers/shows/tvlatest.js index bcc870e36..2f768f352 100644 --- a/src/controllers/shows/tvlatest.js +++ b/src/controllers/shows/tvlatest.js @@ -22,7 +22,7 @@ import imageLoader from 'imageLoader'; function loadLatest(context, params, promise) { promise.then(function (items) { - var html = ''; + let html = ''; html += cardBuilder.getCardsHtml({ items: items, shape: 'backdrop', diff --git a/src/elements/emby-collapse/emby-collapse.js b/src/elements/emby-collapse/emby-collapse.js index 435ae5b67..382b0aa5c 100644 --- a/src/elements/emby-collapse/emby-collapse.js +++ b/src/elements/emby-collapse/emby-collapse.js @@ -11,7 +11,7 @@ import 'emby-button'; elem.classList.remove('hide'); elem.classList.add('expanded'); elem.style.height = 'auto'; - var height = elem.offsetHeight + 'px'; + const height = elem.offsetHeight + 'px'; elem.style.height = '0'; // trigger reflow // TODO: Find a better way to do this