Fixed unused locals
This commit is contained in:
parent
bc79600223
commit
70a2cc275d
@ -6,12 +6,12 @@ export function playAudio(arn: AnimeNotifier, element: HTMLElement) {
|
||||
}
|
||||
|
||||
// Pause audio
|
||||
export function pauseAudio(arn: AnimeNotifier, button: HTMLButtonElement) {
|
||||
export function pauseAudio(arn: AnimeNotifier) {
|
||||
arn.audioPlayer.pause()
|
||||
}
|
||||
|
||||
// Resume audio
|
||||
export function resumeAudio(arn: AnimeNotifier, button: HTMLButtonElement) {
|
||||
export function resumeAudio(arn: AnimeNotifier) {
|
||||
arn.audioPlayer.resume()
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,6 @@ export async function deleteKitsuAnime(arn: AnimeNotifier, button: HTMLButtonEle
|
||||
export async function multiSearchAnime(arn: AnimeNotifier, textarea: HTMLTextAreaElement) {
|
||||
let results = document.getElementById("multi-search-anime") as HTMLDivElement
|
||||
let animeTitles = textarea.value.split("\n")
|
||||
let animeIDs = new Array<string>(animeTitles.length)
|
||||
|
||||
results.innerHTML = ""
|
||||
|
||||
|
@ -26,7 +26,7 @@ export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
|
||||
}
|
||||
|
||||
// Toggle hiding added anime.
|
||||
export function toggleHideAddedAnime(arn: AnimeNotifier, input: HTMLButtonElement) {
|
||||
export function toggleHideAddedAnime() {
|
||||
hideAddedAnime()
|
||||
}
|
||||
|
||||
|
@ -1,16 +1,3 @@
|
||||
import AnimeNotifier from "../AnimeNotifier"
|
||||
|
||||
// Chrome extension installation
|
||||
export function installExtension(arn: AnimeNotifier, button: HTMLElement) {
|
||||
let browser: any = window["chrome"]
|
||||
|
||||
if(browser && browser.webstore) {
|
||||
browser.webstore.install()
|
||||
} else {
|
||||
window.open("https://chrome.google.com/webstore/detail/anime-notifier/hajchfikckiofgilinkpifobdbiajfch", "_blank")
|
||||
}
|
||||
}
|
||||
|
||||
// Desktop app installation
|
||||
export function installApp() {
|
||||
alert("Open your browser menu > 'Install Anime Notifier'.")
|
||||
|
@ -2,8 +2,8 @@ import AnimeNotifier from "../AnimeNotifier"
|
||||
|
||||
let currentThemeName = "light"
|
||||
let previewTimeoutID: number = 0
|
||||
let themeWheel: HTMLElement
|
||||
let themeWheelTimeoutID: number = 0
|
||||
// let themeWheel: HTMLElement
|
||||
// let themeWheelTimeoutID: number = 0
|
||||
|
||||
const themes = {
|
||||
"light": {},
|
||||
|
@ -1,5 +1,4 @@
|
||||
import AnimeNotifier from "../AnimeNotifier"
|
||||
import StatusMessage from "../StatusMessage"
|
||||
import { bytesHumanReadable, uploadWithProgress } from "../Utils"
|
||||
|
||||
// Select file
|
||||
|
@ -49,7 +49,7 @@ export default class ServiceWorkerManager {
|
||||
|
||||
this.postMessage({
|
||||
type: "loaded",
|
||||
url: ""
|
||||
url
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,8 @@
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"strict": false,
|
||||
"strictFunctionTypes": false
|
||||
"strictFunctionTypes": false,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user