aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-07-17 13:14:52 -0400
committerAjay <[email protected]>2024-07-17 13:14:52 -0400
commit3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e (patch)
tree7fe7c7ee178cc38ba7122c98010d9c6160777ce5
parente9a77355bb994e44729ca0aba7afd336d815a155 (diff)
downloadSponsorBlock-3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e.tar.gz
SponsorBlock-3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e.zip
Don't play audio notification when previewing
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
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