WebUI: enforce usage of const whenever possible

This commit is contained in:
Chocobo1
2024-05-27 22:54:18 +08:00
parent cb90b6769c
commit 55bff4f07a
12 changed files with 102 additions and 100 deletions

View File

@@ -435,7 +435,7 @@ window.qBittorrent.Search = (function() {
const isSearchRunning = state && state.running;
if (!isSearchRunning || searchPatternChanged) {
const pattern = $("searchPattern").getProperty("value").trim();
let category = $("categorySelect").getProperty("value");
const category = $("categorySelect").getProperty("value");
const plugins = $("pluginsSelect").getProperty("value");
if (!pattern || !category || !plugins)