diff options
author | Ajay <[email protected]> | 2024-01-21 13:40:01 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-01-21 13:40:01 -0500 |
commit | 8dfd06919b09a353def609cdca5c48a74a34d8ca (patch) | |
tree | 9ba4105f171e850a22e6391f0436a08914959c27 /src | |
parent | 50ee69071794ce4d9da0f0b8531e47d9a67b2e5f (diff) | |
download | SponsorBlock-8dfd06919b09a353def609cdca5c48a74a34d8ca.tar.gz SponsorBlock-8dfd06919b09a353def609cdca5c48a74a34d8ca.zip |
Only require a preview for skip and mute segments
Diffstat (limited to 'src')
-rw-r--r-- | src/content.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |