From 3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 17 Jul 2024 13:14:52 -0400 Subject: Don't play audio notification when previewing --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index f2683208..cc0419e6 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1721,7 +1721,7 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u } } - if (autoSkip && Config.config.audioNotificationOnSkip) { + if (autoSkip && Config.config.audioNotificationOnSkip && !isSubmittingSegment) { const beep = new Audio(chrome.runtime.getURL("icons/beep.ogg")); beep.volume = getVideo().volume * 0.1; const oldMetadata = navigator.mediaSession.metadata -- cgit v1.2.3