mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Fix skip to highlight text reappearing
This commit is contained in:
@@ -67,6 +67,7 @@ export class SkipButtonControlBar {
|
|||||||
this.segment = segment;
|
this.segment = segment;
|
||||||
|
|
||||||
this.refreshText();
|
this.refreshText();
|
||||||
|
this.textContainer?.classList?.remove("hidden");
|
||||||
utils.disableAutoHideAnimation(this.skipIcon);
|
utils.disableAutoHideAnimation(this.skipIcon);
|
||||||
|
|
||||||
this.startTimer();
|
this.startTimer();
|
||||||
@@ -76,7 +77,6 @@ export class SkipButtonControlBar {
|
|||||||
if (this.segment) {
|
if (this.segment) {
|
||||||
this.chapterText?.classList?.add("hidden");
|
this.chapterText?.classList?.add("hidden");
|
||||||
this.container.classList.remove("hidden");
|
this.container.classList.remove("hidden");
|
||||||
this.textContainer?.classList?.remove("hidden");
|
|
||||||
this.textContainer.innerText = this.getTitle();
|
this.textContainer.innerText = this.getTitle();
|
||||||
this.skipIcon.setAttribute("title", this.getTitle());
|
this.skipIcon.setAttribute("title", this.getTitle());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user