mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Only require a preview for skip and mute segments
This commit is contained in:
parent
50ee690717
commit
8dfd06919b
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue