diff options
author | Ajay <[email protected]> | 2024-02-21 14:32:44 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-02-21 14:32:44 -0500 |
commit | e7f4be2d57d94b6e0593aaff7449593cf69ff7c5 (patch) | |
tree | 91f1ee19a91b88e6364b9f7c0f5775418480d131 | |
parent | 9d04482d190dcc54ce62d6be97cb2f6e6950fc5b (diff) | |
download | SponsorBlock-e7f4be2d57d94b6e0593aaff7449593cf69ff7c5.tar.gz SponsorBlock-e7f4be2d57d94b6e0593aaff7449593cf69ff7c5.zip |
Don't require preview for starting segments
-rw-r--r-- | src/content.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index 8413b76b..504ba8d5 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2278,7 +2278,8 @@ async function sendSubmitMessage(): Promise<boolean> { if (!previewedSegment && !sponsorTimesSubmitting.every((segment) => [ActionType.Full, ActionType.Chapter, ActionType.Poi].includes(segment.actionType) - || segment.segment[1] >= getVideo()?.duration)) { + || segment.segment[1] >= getVideo()?.duration + || segment.segment[0] === 0)) { alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`); return false; } |