mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Fix import
This commit is contained in:
parent
1660de60d8
commit
17af0913e7
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user