aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-05-28 16:11:49 -0400
committerAjay <[email protected]>2023-05-28 16:11:49 -0400
commit1b2be35bd60b5a328090563257c1eb788b364a5d (patch)
tree4a857676df70e6d0a48278cfb7139a884670ed86
parentff3d8ff2d681b591749ed38666ef33ba66011627 (diff)
downloadSponsorBlock-1b2be35bd60b5a328090563257c1eb788b364a5d.tar.gz
SponsorBlock-1b2be35bd60b5a328090563257c1eb788b364a5d.zip
Check multiple times if preview bar failed to be added
-rw-r--r--src/content.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content.ts b/src/content.ts
index 87ad2fba..8f05d971 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -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);
}