1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

use import for ItemsByName & PlaylistViewer

This commit is contained in:
grafixeyehero 2022-05-04 03:36:40 +03:00 committed by Bill Thornton
parent 6d3365bc09
commit ac62a5e8bf
4 changed files with 19 additions and 14 deletions

View file

@ -1507,13 +1507,13 @@ function renderChildren(page, item) {
}
function renderItemsByName(page, item) {
import('../../scripts/itembynamedetailpage').then(() => {
window.ItemsByName.renderItems(page, item);
import('../../scripts/itembynamedetailpage').then(({ default: ItemsByName }) => {
ItemsByName.renderItems(page, item);
});
}
function renderPlaylistItems(page, item) {
import('../../scripts/playlistedit').then(() => {
import('../../scripts/playlistViewer').then(({ default: PlaylistViewer }) => {
PlaylistViewer.render(page, item);
});
}