Fix undefined now playing item

This commit is contained in:
Bill Thornton 2024-04-30 16:10:50 -04:00
parent 8fcc4f340c
commit 873d8597a4

View File

@ -628,7 +628,7 @@ function onPlaybackStart(e, state) {
console.debug('nowplaying event: ' + e.type);
const player = this;
isAudio = state.NowPlayingItem.Type === 'Audio';
isAudio = state.NowPlayingItem?.Type === 'Audio';
onStateChanged.call(player, e, state);
}