mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Check multiple times if preview bar failed to be added
This commit is contained in:
@@ -1323,6 +1323,8 @@ function videoElementChange(newVideo: boolean): void {
|
|||||||
checkPreviewbarState();
|
checkPreviewbarState();
|
||||||
|
|
||||||
// Incase the page is still transitioning, check again in a few seconds
|
// Incase the page is still transitioning, check again in a few seconds
|
||||||
|
setTimeout(checkPreviewbarState, 100);
|
||||||
|
setTimeout(checkPreviewbarState, 1000);
|
||||||
setTimeout(checkPreviewbarState, 5000);
|
setTimeout(checkPreviewbarState, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user