WebUI: enforce strict comparison operators

This commit is contained in:
Chocobo1
2024-04-21 14:11:21 +08:00
parent 75e2ae2fa0
commit 4945ed576a
19 changed files with 70 additions and 68 deletions

View File

@@ -30,7 +30,7 @@
const hashes = new URI().getData('hashes').split('|');
const setDlLimit = function() {
const limit = $("dllimitUpdatevalue").value.toInt() * 1024;
if (hashes[0] == "global") {
if (hashes[0] === "global") {
new Request({
url: 'api/v2/transfer/setDownloadLimit',
method: 'post',