Don't play audio notification when previewing

This commit is contained in:
Ajay 2024-07-17 13:14:52 -04:00
parent e9a77355bb
commit 3ec1e85712

View file

@ -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