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

@ -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 {