From ea47793820baf17a99583e1425947007ae624080 Mon Sep 17 00:00:00 2001 From: Yasin Silavi <59373143+sttatusx@users.noreply.github.com> Date: Sat, 9 Sep 2023 00:52:34 +0330 Subject: [PATCH] fix: check both player id and current player id Co-authored-by: Bill Thornton --- src/scripts/autocast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/autocast.js b/src/scripts/autocast.js index 95b694a3b..2633587ba 100644 --- a/src/scripts/autocast.js +++ b/src/scripts/autocast.js @@ -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() {