Removed unused parameters in scripts
This commit is contained in:
@ -2,7 +2,7 @@ import AnimeNotifier from "../AnimeNotifier"
|
||||
import { findAll } from "scripts/Utils"
|
||||
|
||||
// Filter anime on explore page
|
||||
export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
|
||||
export function filterAnime(arn: AnimeNotifier, _: HTMLInputElement) {
|
||||
let root = document.getElementById("filter-root") as HTMLElement
|
||||
|
||||
let elementYear = document.getElementById("filter-year") as HTMLSelectElement
|
||||
|
@ -1,7 +1,7 @@
|
||||
import AnimeNotifier from "../AnimeNotifier"
|
||||
|
||||
// Edit post
|
||||
export function editPost(arn: AnimeNotifier, element: HTMLElement) {
|
||||
export function editPost(_: AnimeNotifier, element: HTMLElement) {
|
||||
let postId = element.dataset.id
|
||||
|
||||
if(!postId) {
|
||||
@ -147,7 +147,7 @@ export async function reply(arn: AnimeNotifier, element: HTMLElement) {
|
||||
}
|
||||
|
||||
// Cancel replying to a post
|
||||
export function cancelReply(arn: AnimeNotifier, element: HTMLElement) {
|
||||
export function cancelReply(arn: AnimeNotifier, _: HTMLElement) {
|
||||
arn.reloadContent()
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import AnimeNotifier from "../AnimeNotifier"
|
||||
|
||||
// Enable notifications
|
||||
export async function enableNotifications(arn: AnimeNotifier, button: HTMLElement) {
|
||||
export async function enableNotifications(arn: AnimeNotifier, _: HTMLElement) {
|
||||
if(!arn.user || !arn.user.dataset.id) {
|
||||
return
|
||||
}
|
||||
@ -13,7 +13,7 @@ export async function enableNotifications(arn: AnimeNotifier, button: HTMLElemen
|
||||
}
|
||||
|
||||
// Disable notifications
|
||||
export async function disableNotifications(arn: AnimeNotifier, button: HTMLElement) {
|
||||
export async function disableNotifications(arn: AnimeNotifier, _: HTMLElement) {
|
||||
if(!arn.user || !arn.user.dataset.id) {
|
||||
return
|
||||
}
|
||||
|
@ -199,11 +199,11 @@ export function searchBySpeech(arn: AnimeNotifier, element: HTMLElement) {
|
||||
recognition.stop()
|
||||
}
|
||||
|
||||
recognition.onerror = e => {
|
||||
recognition.onerror = _ => {
|
||||
recognition.stop()
|
||||
}
|
||||
|
||||
recognition.onend = e => {
|
||||
recognition.onend = _ => {
|
||||
searchInput.placeholder = oldPlaceholder
|
||||
element.classList.remove("speech-listening")
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ export function chargeUp(arn: AnimeNotifier, button: HTMLElement) {
|
||||
}
|
||||
|
||||
// Toggle fade
|
||||
export function toggleFade(arn: AnimeNotifier, button: HTMLElement) {
|
||||
export function toggleFade(_: AnimeNotifier, button: HTMLElement) {
|
||||
let elementId = button.dataset.elementId
|
||||
|
||||
if(!elementId) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import AnimeNotifier from "../AnimeNotifier"
|
||||
|
||||
// Toggle sidebar
|
||||
export function toggleSidebar(arn: AnimeNotifier) {
|
||||
export function toggleSidebar(_: AnimeNotifier) {
|
||||
let sidebar = document.getElementById("sidebar") as HTMLElement
|
||||
sidebar.classList.toggle("sidebar-visible")
|
||||
}
|
@ -166,7 +166,7 @@ export function applyTheme(themeName: string) {
|
||||
}
|
||||
|
||||
// Color picker
|
||||
export function pickColor(arn: AnimeNotifier, element: HTMLElement) {
|
||||
export function pickColor(_: AnimeNotifier, element: HTMLElement) {
|
||||
let rootStyle = document.documentElement.style
|
||||
let variableName = `--${element.dataset.variable}`
|
||||
|
||||
|
@ -31,7 +31,7 @@ async function updateFollow(arn: AnimeNotifier, element: HTMLElement, message: s
|
||||
}
|
||||
|
||||
// Show more
|
||||
export function showMore(arn: AnimeNotifier, showMoreElement: HTMLElement) {
|
||||
export function showMore(_: AnimeNotifier, showMoreElement: HTMLElement) {
|
||||
const elements = [...document.getElementsByClassName("show-more")]
|
||||
|
||||
for(let element of elements) {
|
||||
|
@ -40,7 +40,7 @@ function togglePlayVideoElement(video: HTMLVideoElement) {
|
||||
}
|
||||
|
||||
// Toggle fullscreen
|
||||
export function toggleFullscreen(arn: AnimeNotifier, button: HTMLElement) {
|
||||
export function toggleFullscreen(_: AnimeNotifier, button: HTMLElement) {
|
||||
let elementId = button.dataset.id
|
||||
|
||||
if(!elementId) {
|
||||
|
Reference in New Issue
Block a user