mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-20 04:18:19 -07:00
replace require with Dynamic Imports
This commit is contained in:
parent
bb5d37f3e7
commit
2d53cb5f85
@ -201,8 +201,7 @@ export class editor {
|
|||||||
currentOptions = options;
|
currentOptions = options;
|
||||||
currentResolve = resolve;
|
currentResolve = resolve;
|
||||||
hasChanges = false;
|
hasChanges = false;
|
||||||
// TODO: remove require
|
import('text!./components/mediaLibraryCreator/mediaLibraryCreator.template.html').then(({default: template}) => {
|
||||||
require(['text!./components/mediaLibraryCreator/mediaLibraryCreator.template.html'], template => {
|
|
||||||
const dlg = dialogHelper.createDialog({
|
const dlg = dialogHelper.createDialog({
|
||||||
size: 'small',
|
size: 'small',
|
||||||
modal: false,
|
modal: false,
|
||||||
|
@ -216,8 +216,7 @@ export class editor {
|
|||||||
currentOptions = options;
|
currentOptions = options;
|
||||||
currentDeferred = deferred;
|
currentDeferred = deferred;
|
||||||
hasChanges = false;
|
hasChanges = false;
|
||||||
// TODO: remove require
|
import('text!./components/mediaLibraryEditor/mediaLibraryEditor.template.html').then(({default: template}) => {
|
||||||
require(['text!./components/mediaLibraryEditor/mediaLibraryEditor.template.html'], template => {
|
|
||||||
const dlg = dialogHelper.createDialog({
|
const dlg = dialogHelper.createDialog({
|
||||||
size: 'small',
|
size: 'small',
|
||||||
modal: false,
|
modal: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user