Only require a preview for skip and mute segments

This commit is contained in:
Ajay 2024-01-21 13:40:01 -05:00
parent 50ee690717
commit 8dfd06919b

View file

@ -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;
}