mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Don't require preview for starting segments
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user