From 8dfd06919b09a353def609cdca5c48a74a34d8ca Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 21 Jan 2024 13:40:01 -0500 Subject: [PATCH] Only require a preview for skip and mute segments --- src/content.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 58a48f05..9e744ebb 100644 --- a/src/content.ts +++ b/src/content.ts @@ -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; }