mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Listen to custom videospeed event
https://github.com/igrigorik/videospeed/pull/740
This commit is contained in:
parent
dbee744bd7
commit
bd51f5b621
1 changed files with 2 additions and 0 deletions
|
@ -589,6 +589,8 @@ async function sponsorsLookup(id: string) {
|
|||
}
|
||||
});
|
||||
video.addEventListener('ratechange', () => startSponsorSchedule());
|
||||
// Used by videospeed extension (https://github.com/igrigorik/videospeed/pull/740)
|
||||
video.addEventListener('videoSpeed_ratechange', () => startSponsorSchedule());
|
||||
video.addEventListener('pause', () => {
|
||||
// Reset lastCheckVideoTime
|
||||
lastCheckVideoTime = -1;
|
||||
|
|
Loading…
Reference in a new issue