diff options
author | Ajay <[email protected]> | 2024-07-17 13:14:52 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2024-07-17 13:14:52 -0400 |
commit | 3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e (patch) | |
tree | 7fe7c7ee178cc38ba7122c98010d9c6160777ce5 /src/content.ts | |
parent | e9a77355bb994e44729ca0aba7afd336d815a155 (diff) | |
download | SponsorBlock-3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e.tar.gz SponsorBlock-3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e.zip |
Don't play audio notification when previewing
Diffstat (limited to 'src/content.ts')
-rw-r--r-- | src/content.ts | 2 |
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 |