mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove require
This commit is contained in:
parent
0b98e7770f
commit
c0d4c9f134
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ function createMediaElement(instance, options) {
|
|||
|
||||
if (!dlg) {
|
||||
|
||||
require(['css!./style'], function () {
|
||||
import('css!./style').then(() => {
|
||||
|
||||
loading.show();
|
||||
|
||||
|
@ -127,7 +127,7 @@ function onPlaying(instance, playOptions, resolve) {
|
|||
instance.videoDialog.classList.remove('onTop');
|
||||
}
|
||||
|
||||
require(['loading'], function (loading) {
|
||||
import('loading').then(({default: loading}) => {
|
||||
|
||||
loading.hide();
|
||||
});
|
||||
|
@ -138,7 +138,7 @@ function setCurrentSrc(instance, elem, options) {
|
|||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
require(['queryString'], function (queryString) {
|
||||
import('queryString').then(({default: queryString}) => {
|
||||
|
||||
instance._currentSrc = options.url;
|
||||
const params = queryString.parse(options.url.split('?')[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue