mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix undefined now playing item
This commit is contained in:
parent
8fcc4f340c
commit
873d8597a4
1 changed files with 1 additions and 1 deletions
|
@ -628,7 +628,7 @@ function onPlaybackStart(e, state) {
|
||||||
console.debug('nowplaying event: ' + e.type);
|
console.debug('nowplaying event: ' + e.type);
|
||||||
const player = this;
|
const player = this;
|
||||||
|
|
||||||
isAudio = state.NowPlayingItem.Type === 'Audio';
|
isAudio = state.NowPlayingItem?.Type === 'Audio';
|
||||||
|
|
||||||
onStateChanged.call(player, e, state);
|
onStateChanged.call(player, e, state);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue