mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix review feedback
This commit is contained in:
parent
23c15f8259
commit
96eff86e3b
2 changed files with 5 additions and 6 deletions
|
@ -91,7 +91,7 @@ async function loadThemeMedia(serverId, itemId) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (excludeTypes.indexOf(item.Type) !== -1) {
|
||||
if (excludeTypes.includes(item.Type)) {
|
||||
stopIfPlaying();
|
||||
return;
|
||||
}
|
||||
|
@ -110,8 +110,8 @@ async function loadThemeMedia(serverId, itemId) {
|
|||
}
|
||||
|
||||
document.addEventListener('viewshow', e => {
|
||||
if (e.detail?.params?.id && e.detail?.params?.serverId) {
|
||||
const { serverId, id } = e.detail.params;
|
||||
const { serverId, id } = e.detail?.params || {};
|
||||
if (serverId && id) {
|
||||
void loadThemeMedia(serverId, id);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue