mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Highlight Button now persists
This commit is contained in:
@@ -84,7 +84,7 @@ export class SkipButtonControlBar {
|
|||||||
|
|
||||||
startTimer(): void {
|
startTimer(): void {
|
||||||
this.stopTimer();
|
this.stopTimer();
|
||||||
this.timeout = setTimeout(() => this.disable(), Math.max(Config.config.skipNoticeDuration, this.duration) * 1000);
|
this.timeout = setTimeout(() => this.innerTextVanish(), Math.max(Config.config.skipNoticeDuration, this.duration) * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
disable(): void {
|
disable(): void {
|
||||||
@@ -94,7 +94,12 @@ export class SkipButtonControlBar {
|
|||||||
|
|
||||||
toggleSkip(): void {
|
toggleSkip(): void {
|
||||||
this.skip(this.segment);
|
this.skip(this.segment);
|
||||||
this.disable();
|
this.innerTextVanish();
|
||||||
|
}
|
||||||
|
|
||||||
|
innerTextVanish(): void {
|
||||||
|
this.textContainer.innerText = "";
|
||||||
|
this.chapterText?.classList?.remove("hidden");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user