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
|
// Pause audio
|
||||||
export function pauseAudio(arn: AnimeNotifier, button: HTMLButtonElement) {
|
export function pauseAudio(arn: AnimeNotifier) {
|
||||||
arn.audioPlayer.pause()
|
arn.audioPlayer.pause()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resume audio
|
// Resume audio
|
||||||
export function resumeAudio(arn: AnimeNotifier, button: HTMLButtonElement) {
|
export function resumeAudio(arn: AnimeNotifier) {
|
||||||
arn.audioPlayer.resume()
|
arn.audioPlayer.resume()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,6 @@ export async function deleteKitsuAnime(arn: AnimeNotifier, button: HTMLButtonEle
|
|||||||
export async function multiSearchAnime(arn: AnimeNotifier, textarea: HTMLTextAreaElement) {
|
export async function multiSearchAnime(arn: AnimeNotifier, textarea: HTMLTextAreaElement) {
|
||||||
let results = document.getElementById("multi-search-anime") as HTMLDivElement
|
let results = document.getElementById("multi-search-anime") as HTMLDivElement
|
||||||
let animeTitles = textarea.value.split("\n")
|
let animeTitles = textarea.value.split("\n")
|
||||||
let animeIDs = new Array<string>(animeTitles.length)
|
|
||||||
|
|
||||||
results.innerHTML = ""
|
results.innerHTML = ""
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Toggle hiding added anime.
|
// Toggle hiding added anime.
|
||||||
export function toggleHideAddedAnime(arn: AnimeNotifier, input: HTMLButtonElement) {
|
export function toggleHideAddedAnime() {
|
||||||
hideAddedAnime()
|
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
|
// Desktop app installation
|
||||||
export function installApp() {
|
export function installApp() {
|
||||||
alert("Open your browser menu > 'Install Anime Notifier'.")
|
alert("Open your browser menu > 'Install Anime Notifier'.")
|
||||||
|
@ -2,8 +2,8 @@ import AnimeNotifier from "../AnimeNotifier"
|
|||||||
|
|
||||||
let currentThemeName = "light"
|
let currentThemeName = "light"
|
||||||
let previewTimeoutID: number = 0
|
let previewTimeoutID: number = 0
|
||||||
let themeWheel: HTMLElement
|
// let themeWheel: HTMLElement
|
||||||
let themeWheelTimeoutID: number = 0
|
// let themeWheelTimeoutID: number = 0
|
||||||
|
|
||||||
const themes = {
|
const themes = {
|
||||||
"light": {},
|
"light": {},
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import AnimeNotifier from "../AnimeNotifier"
|
import AnimeNotifier from "../AnimeNotifier"
|
||||||
import StatusMessage from "../StatusMessage"
|
|
||||||
import { bytesHumanReadable, uploadWithProgress } from "../Utils"
|
import { bytesHumanReadable, uploadWithProgress } from "../Utils"
|
||||||
|
|
||||||
// Select file
|
// Select file
|
||||||
|
@ -49,7 +49,7 @@ export default class ServiceWorkerManager {
|
|||||||
|
|
||||||
this.postMessage({
|
this.postMessage({
|
||||||
type: "loaded",
|
type: "loaded",
|
||||||
url: ""
|
url
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"strict": false,
|
"strict": false,
|
||||||
"strictFunctionTypes": false
|
"strictFunctionTypes": false,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": false
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user