mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Don't require preview for starting segments
This commit is contained in:
parent
9d04482d19
commit
e7f4be2d57
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue