diff options
author | Ajay Ramachandran <[email protected]> | 2022-05-24 13:17:27 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-24 13:17:27 -0400 |
commit | 941fc2985da273f8dc7558478b8f34212566c268 (patch) | |
tree | 5d509ee2c824055cf62ab8606f42a1bd91a8c7a7 /src/js-components/skipButtonControlBar.ts | |
parent | e2da0717618de2e64a9ef041eee5fad9c15f310b (diff) | |
parent | 463ce258bf611074fc80445c2ded6155cb0f4f88 (diff) | |
download | SponsorBlock-941fc2985da273f8dc7558478b8f34212566c268.tar.gz SponsorBlock-941fc2985da273f8dc7558478b8f34212566c268.zip |
Merge pull request #1238 from AlecRust/fix-unused-vars-lint
Fix @typescript-eslint/no-unused-vars lint warnings
Diffstat (limited to 'src/js-components/skipButtonControlBar.ts')
-rw-r--r-- | src/js-components/skipButtonControlBar.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/js-components/skipButtonControlBar.ts b/src/js-components/skipButtonControlBar.ts index b765fc3e..11bbf1ac 100644 --- a/src/js-components/skipButtonControlBar.ts +++ b/src/js-components/skipButtonControlBar.ts @@ -2,10 +2,7 @@ import Config from "../config"; import { SponsorTime } from "../types"; import { getSkippingText } from "../utils/categoryUtils"; import { keybindToString } from "../utils/configUtils"; - -import Utils from "../utils"; import { AnimationUtils } from "../utils/animationUtils"; -const utils = new Utils(); export interface SkipButtonControlBarProps { skip: (segment: SponsorTime) => void; @@ -53,7 +50,7 @@ export class SkipButtonControlBar { this.skipIcon.id = "sbSkipIconControlBarImage"; this.textContainer = document.createElement("div"); - + this.container.appendChild(this.skipIcon); this.container.appendChild(this.textContainer); this.container.addEventListener("click", () => this.toggleSkip()); @@ -73,7 +70,7 @@ export class SkipButtonControlBar { attachToPage(): void { const mountingContainer = this.getMountingContainer(); this.chapterText = document.querySelector(".ytp-chapter-container"); - + if (mountingContainer && !mountingContainer.contains(this.container)) { if (this.onMobileYouTube) { mountingContainer.appendChild(this.container); @@ -220,4 +217,3 @@ export class SkipButtonControlBar { this.container.style.left = this.left + "px"; } } - |