aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-02-21 14:32:44 -0500
committerAjay <[email protected]>2024-02-21 14:32:44 -0500
commite7f4be2d57d94b6e0593aaff7449593cf69ff7c5 (patch)
tree91f1ee19a91b88e6364b9f7c0f5775418480d131
parent9d04482d190dcc54ce62d6be97cb2f6e6950fc5b (diff)
downloadSponsorBlock-e7f4be2d57d94b6e0593aaff7449593cf69ff7c5.tar.gz
SponsorBlock-e7f4be2d57d94b6e0593aaff7449593cf69ff7c5.zip
Don't require preview for starting segments
-rw-r--r--src/content.ts3
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;
}