mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-27 12:50:51 +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
|
if (!previewedSegment
|
||||||
&& !sponsorTimesSubmitting.every((segment) =>
|
&& !sponsorTimesSubmitting.every((segment) =>
|
||||||
[ActionType.Full, ActionType.Chapter, ActionType.Poi].includes(segment.actionType)
|
[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)}`);
|
alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user