aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content.ts')
-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;
}