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
eff468dc82
commit
cf1ca53f9c
2 changed files with 4 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue