1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix: check both player id and current player id

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Yasin Silavi 2023-09-09 00:52:34 +03:30 committed by Bill Thornton
parent e4db027bbb
commit ea47793820

View file

@ -26,7 +26,7 @@ export function isEnabled() {
const playerId = localStorage.getItem('autocastPlayerId');
const currentPlayerInfo = playbackManager.getPlayerInfo();
return currentPlayerInfo?.id === playerId;
return playerId && currentPlayerInfo?.id === playerId;
}
function onOpen() {