Update maze utils to improve performance on Invidious, and fix preview bar error

thanks @raphj
This commit is contained in:
Ajay 2023-08-11 12:08:19 -04:00
parent e3f3ed20e6
commit 160924feee
2 changed files with 8 additions and 6 deletions

@ -1 +1 @@
Subproject commit 66fa2dc6249167f2b827b0fd96623f9f15ff3ce1
Subproject commit d23dbf3add5c6b64b837da4bc01672a6ee75fb40

View file

@ -784,11 +784,13 @@ class PreviewBar {
if (!Config.config.showSegmentNameInChapterBar
|| ((!segments || segments.length <= 0) && submittingSegments?.length <= 0)) {
const chaptersContainer = this.getChaptersContainer();
chaptersContainer.querySelector(".sponsorChapterText")?.remove();
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
chapterTitle.style.removeProperty("display");
chaptersContainer.classList.remove("sponsorblock-chapter-visible");
if (chaptersContainer) {
chaptersContainer.querySelector(".sponsorChapterText")?.remove();
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
chapterTitle.style.removeProperty("display");
chaptersContainer.classList.remove("sponsorblock-chapter-visible");
}
return [];
}