Refactor isEnabled function to always return boolean
This commit is contained in:
committed by
Bill Thornton
parent
37fd4feb55
commit
4dd8d7e73f
@@ -26,7 +26,7 @@ export function isEnabled() {
|
||||
const playerId = localStorage.getItem('autocastPlayerId');
|
||||
const currentPlayerInfo = playbackManager.getPlayerInfo();
|
||||
|
||||
return (currentPlayerInfo && playerId && currentPlayerInfo.id === playerId);
|
||||
return currentPlayerInfo?.id === playerId
|
||||
}
|
||||
|
||||
function onOpen() {
|
||||
|
||||
Reference in New Issue
Block a user