From 1b2be35bd60b5a328090563257c1eb788b364a5d Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 28 May 2023 16:11:49 -0400 Subject: [PATCH] Check multiple times if preview bar failed to be added --- src/content.ts | 2 ++ 1 file changed, 2 insertions(+) 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); }