Don't require preview for starting segments

This commit is contained in:
Ajay 2024-02-21 14:32:44 -05:00
parent 9d04482d19
commit e7f4be2d57

View file

@ -2278,7 +2278,8 @@ async function sendSubmitMessage(): Promise<boolean> {
if (!previewedSegment
&& !sponsorTimesSubmitting.every((segment) =>
[ActionType.Full, ActionType.Chapter, ActionType.Poi].includes(segment.actionType)
|| segment.segment[1] >= getVideo()?.duration)) {
|| segment.segment[1] >= getVideo()?.duration
|| segment.segment[0] === 0)) {
alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`);
return false;
}