mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Fix skipping not working
This commit is contained in:
parent
00c09052dc
commit
dfbe036119
1 changed files with 2 additions and 2 deletions
|
@ -531,7 +531,7 @@ function cancelSponsorSchedule(): void {
|
|||
/**
|
||||
* @param currentTime Optional if you don't want to use the actual current time
|
||||
*/
|
||||
function startSponsorSchedule(includeIntersectingSegments = false, currentTime?: number, includeNonIntersectingSegments = true): void {
|
||||
async function startSponsorSchedule(includeIntersectingSegments = false, currentTime?: number, includeNonIntersectingSegments = true): Promise<void> {
|
||||
cancelSponsorSchedule();
|
||||
|
||||
// Don't skip if advert playing and reset last checked time
|
||||
|
@ -545,7 +545,7 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?:
|
|||
}
|
||||
|
||||
// Give up if video changed, and trigger a videoID change if so
|
||||
if (checkIfNewVideoID()) {
|
||||
if (await checkIfNewVideoID()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue