1
0
Fork 0
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:
grafixeyehero 2020-06-11 22:07:24 +03:00
parent eff468dc82
commit cf1ca53f9c
2 changed files with 4 additions and 6 deletions

View file

@ -93,8 +93,7 @@ export class editor {
constructor() {
this.show = (itemType, options, availableOptions) => {
return new Promise((resolve) => {
//TODO: remove require
require(['text!./components/imageOptionsEditor/imageOptionsEditor.template.html'], template => {
import('text!./components/imageOptionsEditor/imageOptionsEditor.template.html').then(({default: template}) => {
const dlg = dialogHelper.createDialog({
size: 'small',
removeOnClose: true,