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

Update src/scripts/autocast.js

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Yasin Silavi 2023-07-26 17:41:08 +03:30 committed by Bill Thornton
parent a8e6eaff48
commit e4db027bbb

View file

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