mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Only require a preview for skip and mute segments
This commit is contained in:
@@ -2266,7 +2266,9 @@ async function sendSubmitMessage() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!previewedSegment) {
|
||||
if (!previewedSegment
|
||||
&& !sponsorTimesSubmitting.every((segment) =>
|
||||
[ActionType.Full, ActionType.Chapter, ActionType.Poi].includes(segment.actionType))) {
|
||||
alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user