mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 06:57:09 +03:00
Fix bar being too long due to time to decimal changing while remaking bar not true
This commit is contained in:
@@ -374,7 +374,6 @@ class PreviewBar {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (remakingBar) {
|
|
||||||
const filteredSegments = segments?.filter((segment) => this.chapterFilter(segment));
|
const filteredSegments = segments?.filter((segment) => this.chapterFilter(segment));
|
||||||
if (filteredSegments) {
|
if (filteredSegments) {
|
||||||
let groups = this.unfilteredChapterGroups;
|
let groups = this.unfilteredChapterGroups;
|
||||||
@@ -394,7 +393,6 @@ class PreviewBar {
|
|||||||
} else {
|
} else {
|
||||||
this.chapterGroups = this.unfilteredChapterGroups;
|
this.chapterGroups = this.unfilteredChapterGroups;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.chapterGroups || this.chapterGroups.length <= 0) {
|
if (!this.chapterGroups || this.chapterGroups.length <= 0) {
|
||||||
if (this.customChaptersBar) this.customChaptersBar.style.display = "none";
|
if (this.customChaptersBar) this.customChaptersBar.style.display = "none";
|
||||||
|
|||||||
Reference in New Issue
Block a user