mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Fix preview bar not being created on video element change if not created previously
This commit is contained in:
@@ -1335,10 +1335,10 @@ function videoElementChange(newVideo: boolean): void {
|
||||
if (previewBar && !utils.findReferenceNode()?.contains(previewBar.container)) {
|
||||
previewBar.remove();
|
||||
previewBar = null;
|
||||
}
|
||||
|
||||
createPreviewBar();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns info about the next upcoming sponsor skip
|
||||
|
||||
Reference in New Issue
Block a user