mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 06:27:14 +03:00
Fix last imported chapter not displaying sometimes
This commit is contained in:
@@ -682,8 +682,6 @@ class PreviewBar {
|
||||
const chaptersContainer = document.querySelector(".ytp-chapter-container") as HTMLDivElement;
|
||||
|
||||
if (chaptersContainer) {
|
||||
// TODO: Check if existing chapters exist (if big chapters menu is available?)
|
||||
|
||||
if (segments.length > 0) {
|
||||
chaptersContainer.style.removeProperty("display");
|
||||
|
||||
@@ -721,7 +719,6 @@ class PreviewBar {
|
||||
this.chapterVote.setVisibility(false);
|
||||
}
|
||||
} else {
|
||||
// Hide chapters menu again
|
||||
chaptersContainer.style.display = "none";
|
||||
this.chapterVote.setVisibility(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user