mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
Skip non-ready state of player in nowPlayingBar
When nowPlayingBar receives an `init` event, some propertes of `state` are not yet defined. Wait for `playbackstart`.
This commit is contained in:
parent
d997d63d11
commit
2d5e7f745f
@ -658,6 +658,11 @@ import { appRouter } from '../appRouter';
|
||||
}
|
||||
|
||||
function onStateChanged(event, state) {
|
||||
if (event.type === 'init') {
|
||||
// skip non-ready state
|
||||
return;
|
||||
}
|
||||
|
||||
console.debug('nowplaying event: ' + event.type);
|
||||
const player = this;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user