aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/js-components
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-11-04 16:05:09 -0400
committerAjay <[email protected]>2022-11-04 16:05:09 -0400
commit177583539269ffdc3e4798eb3ba78e61c04dedfb (patch)
tree500eb5782392c97878921912e3674c6eb14e5a04 /src/js-components
parent2c5db670a4b64a46a50ed065b06bde67b46174cc (diff)
downloadSponsorBlock-177583539269ffdc3e4798eb3ba78e61c04dedfb.tar.gz
SponsorBlock-177583539269ffdc3e4798eb3ba78e61c04dedfb.zip
Add hiding skip to highlight
Fix #1530
Diffstat (limited to 'src/js-components')
-rw-r--r--src/js-components/skipButtonControlBar.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js-components/skipButtonControlBar.ts b/src/js-components/skipButtonControlBar.ts
index 11bbf1ac..7ab86bc9 100644
--- a/src/js-components/skipButtonControlBar.ts
+++ b/src/js-components/skipButtonControlBar.ts
@@ -142,6 +142,10 @@ export class SkipButtonControlBar {
this.enabled = false;
}
+ isEnabled(): boolean {
+ return this.enabled;
+ }
+
toggleSkip(): void {
this.skip(this.segment);
this.disableText();