move audio notification to content.ts

fixes  #756
This commit is contained in:
Hegymegi Kiss Áron
2021-12-11 16:02:07 +01:00
parent 1c911581db
commit 9f9df9479b
2 changed files with 6 additions and 14 deletions

View File

@@ -1242,7 +1242,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 = skipNoticeContentContainer().v.volume * 0.1;
beep.play();
}
if (!autoSkip