WebUI: always provide event variable

This is unifying coding style and avoid wrong usages.

PR #22676.
This commit is contained in:
Chocobo1
2025-05-13 00:11:00 +08:00
committed by GitHub
parent 663da093bd
commit eb82c9078d
32 changed files with 57 additions and 57 deletions

View File

@@ -128,7 +128,7 @@ window.qBittorrent.Search ??= (() => {
// listen for changes to searchInNameFilter
let searchInNameFilterTimer = -1;
document.getElementById("searchInNameFilter").addEventListener("input", () => {
document.getElementById("searchInNameFilter").addEventListener("input", (event) => {
clearTimeout(searchInNameFilterTimer);
searchInNameFilterTimer = setTimeout(() => {
searchInNameFilterTimer = -1;