[PlayerPanel] disclaimer 표시시점 수정

This commit is contained in:
고동영
2024-07-12 14:56:29 +09:00
parent 86dc2ae2e8
commit 1f67387eb4

View File

@@ -139,7 +139,7 @@ const YOUTUBECONFIG = {
cc_lang_pref: "en",
cc_load_policy: 0,
},
}
};
const PlayerPanel = ({
isTabActivated,
@@ -1167,9 +1167,11 @@ const PlayerPanel = ({
const newSmallestOffsetHourIndex = shopNowInfo.findIndex(
(video) => video.offsetHour === newSmallestOffsetHour.toString()
);
if (newSmallestOffsetHourIndex >= 1) {
return newSmallestOffsetHourIndex - 1;
}
return newSmallestOffsetHourIndex;
}
}, [shopNowInfo, currentTime]);
const currentSubtTitleUrl = useMemo(() => {
@@ -1266,8 +1268,8 @@ const PlayerPanel = ({
};
} else {
return {
youtube: YOUTUBECONFIG
}
youtube: YOUTUBECONFIG,
};
}
}, [currentSubtitleBlob, isSubtitleActive]);