[shoptime-3994] 예외 처리 추가
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user