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