Merge pull request #1091 from AronHK/audio-notification

Decouple audio notification from Skip Notice
This commit is contained in:
Ajay Ramachandran
2021-12-28 11:36:04 -05:00
committed by GitHub
2 changed files with 6 additions and 14 deletions

View File

@@ -1222,7 +1222,12 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u
break;
}
}
}
if (autoSkip && Config.config.audioNotificationOnSkip) {
const beep = new Audio(chrome.runtime.getURL("icons/beep.ogg"));
beep.volume = video.volume * 0.1;
beep.play();
}
if (!autoSkip