Made sure no skips are scheduled while paused

This commit is contained in:
Ajay Ramachandran 2020-03-11 19:39:08 -04:00
parent 5f879bceab
commit 0467dd5d21

View file

@ -452,6 +452,7 @@ function cancelSponsorSchedule(): void {
*/
function startSponsorSchedule(currentTime?: number): void {
cancelSponsorSchedule();
if (video.paused) return;
if (Config.config.disableSkipping || channelWhitelisted){
return;