mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 14:37:23 +03:00
Only require a preview for skip and mute segments
This commit is contained in:
@@ -2266,7 +2266,9 @@ async function sendSubmitMessage() {
|
|||||||
return;
|
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)}`);
|
alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user