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 23:21:46 +03:00
parent 64125541fb
commit b7d9dba32f
3 changed files with 5 additions and 8 deletions

View file

@ -169,8 +169,7 @@ import 'flexStyles';
export function show(itemId, serverId) {
loading.show();
return new Promise((resolve, reject) => {
// TODO: remove require
require(['text!./components/itemMediaInfo/itemMediaInfo.template.html'], template => {
import('text!./itemMediaInfo.template.html').then(({default: template}) => {
loadMediaInfo(itemId, serverId, template).then(resolve, reject);
});
});