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
|
@ -33,9 +33,8 @@ async function mirrorIfEnabled(serverId: string, itemId: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('viewshow', e => {
|
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 mirrorIfEnabled(serverId, id);
|
void mirrorIfEnabled(serverId, id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -91,7 +91,7 @@ async function loadThemeMedia(serverId, itemId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (excludeTypes.indexOf(item.Type) !== -1) {
|
if (excludeTypes.includes(item.Type)) {
|
||||||
stopIfPlaying();
|
stopIfPlaying();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -110,8 +110,8 @@ async function loadThemeMedia(serverId, itemId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('viewshow', e => {
|
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);
|
void loadThemeMedia(serverId, id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue