mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
replace require with Dynamic Imports
This commit is contained in:
parent
bb5d37f3e7
commit
2d53cb5f85
2 changed files with 2 additions and 4 deletions
|
@ -216,8 +216,7 @@ export class editor {
|
|||
currentOptions = options;
|
||||
currentDeferred = deferred;
|
||||
hasChanges = false;
|
||||
// TODO: remove require
|
||||
require(['text!./components/mediaLibraryEditor/mediaLibraryEditor.template.html'], template => {
|
||||
import('text!./components/mediaLibraryEditor/mediaLibraryEditor.template.html').then(({default: template}) => {
|
||||
const dlg = dialogHelper.createDialog({
|
||||
size: 'small',
|
||||
modal: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue