[shoptime-3994] 예외 처리 추가

This commit is contained in:
jiwon93.son
2025-11-07 10:50:36 +09:00
parent 73c188d403
commit b19843fa96

View File

@@ -1020,9 +1020,17 @@ const PlayerPanel = ({
panelInfo.sourcePanel === "featuredbrandspanel" &&
shopNowInfo?.length > 0
) {
const shopNowElement = document.querySelector(
'[data-spotlight-id="playVideoShopNowBox"]'
);
if (shopNowElement) {
Spotlight.focus("playVideoShopNowBox");
} else {
shopNowFocusTimeoutJob.current.start(() => {
Spotlight.focus("playVideoShopNowBox");
});
}
return;
}
Spotlight.focus(SpotlightIds.PLAYER_TAB_BUTTON);