1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

multiple javascript error fixes

This commit is contained in:
vitorsemeano 2020-10-18 13:53:12 +01:00
parent e525a46068
commit 68079d96a1
4 changed files with 19 additions and 21 deletions

View file

@ -2,11 +2,10 @@ import { Events } from 'jellyfin-apiclient';
import browser from '../../scripts/browser';
import { appHost } from '../../components/apphost';
import * as htmlMediaHelper from '../../components/htmlMediaHelper';
import profileBuilder from '../../scripts/browserDeviceProfile';
function getDefaultProfile() {
return import('../../scripts/browserDeviceProfile').then(({ default: profileBuilder }) => {
return profileBuilder({});
});
return profileBuilder({});
}
let fadeTimeout;

View file

@ -27,6 +27,7 @@ import itemHelper from '../../components/itemHelper';
import Screenfull from 'screenfull';
import globalize from '../../scripts/globalize';
import ServerConnections from '../../components/ServerConnections';
import profileBuilder from '../../scripts/browserDeviceProfile';
/* eslint-disable indent */
@ -140,9 +141,7 @@ function tryRemoveElement(elem) {
}
function getDefaultProfile() {
return import('../../scripts/browserDeviceProfile').then(({default: profileBuilder}) => {
return profileBuilder({});
});
return profileBuilder({});
}
export class HtmlVideoPlayer {