mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +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();
|
||||
|
||||
// Incase the page is still transitioning, check again in a few seconds
|
||||
setTimeout(checkPreviewbarState, 100);
|
||||
setTimeout(checkPreviewbarState, 1000);
|
||||
setTimeout(checkPreviewbarState, 5000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user