Check multiple times if preview bar failed to be added

This commit is contained in:
Ajay 2023-05-28 16:11:49 -04:00
parent ff3d8ff2d6
commit 1b2be35bd6

View file

@ -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);
}