diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index 8cef664f3f..504cfcfbb6 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -2,7 +2,6 @@ import { intervalToDuration } from 'date-fns'; import DOMPurify from 'dompurify'; import escapeHtml from 'escape-html'; import isEqual from 'lodash-es/isEqual'; - import { appHost } from '../../components/apphost'; import loading from '../../components/loading/loading'; import { appRouter } from '../../components/appRouter'; @@ -516,7 +515,7 @@ function setTrailerButtonVisibility(page, item) { function renderBackdrop(item) { if (!layoutManager.mobile && dom.getWindowSize().innerWidth >= 1000) { - backdrop.setBackdrops([item]); + setBackdrops([item]); } else { clearBackdrop(); } diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 26d6c25c8e..1359aecb8c 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -39,7 +39,7 @@ import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../components/ba */ function resolveUrl(url) { return new Promise((resolve) => { - var xhr = new XMLHttpRequest(); + const xhr = new XMLHttpRequest(); xhr.open('HEAD', url, true); xhr.onload = function () { resolve(xhr.responseURL || url); diff --git a/src/scripts/libraryMenu.js b/src/scripts/libraryMenu.js index 9c6cca88cd..095a330352 100644 --- a/src/scripts/libraryMenu.js +++ b/src/scripts/libraryMenu.js @@ -1,6 +1,5 @@ import escapeHtml from 'escape-html'; import Headroom from 'headroom.js'; - import dom from './dom'; import layoutManager from '../components/layoutManager'; import inputManager from './inputManager'; @@ -16,9 +15,8 @@ import imageHelper from './imagehelper'; import { getMenuLinks } from '../scripts/settings/webSettings'; import Dashboard, { pageClassOn } from '../utils/dashboard'; import ServerConnections from '../components/ServerConnections'; - +import { getParameterByName } from '../utils/url.ts'; import '../elements/emby-button/paper-icon-button-light'; - import 'material-design-icons-iconfont'; import '../assets/css/scrollstyles.scss'; import '../assets/css/flexstyles.scss';