fix: check both player id and current player id
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
committed by
Bill Thornton
parent
e4db027bbb
commit
ea47793820
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user