mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Check multiple times if preview bar failed to be added
This commit is contained in:
parent
ff3d8ff2d6
commit
1b2be35bd6
1 changed files with 2 additions and 0 deletions
|
@ -1323,6 +1323,8 @@ function videoElementChange(newVideo: boolean): void {
|
|||
checkPreviewbarState();
|
||||
|
||||
// Incase the page is still transitioning, check again in a few seconds
|
||||
setTimeout(checkPreviewbarState, 100);
|
||||
setTimeout(checkPreviewbarState, 1000);
|
||||
setTimeout(checkPreviewbarState, 5000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue