Fix import

This commit is contained in:
grafixeyehero 2022-05-21 23:37:30 +03:00
parent 1660de60d8
commit 17af0913e7
3 changed files with 3 additions and 6 deletions

View File

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

View File

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

View File

@ -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';