WebUI: enforce parentheses around operators

PR #20696.
This commit is contained in:
Chocobo1
2024-04-15 12:50:07 +08:00
committed by GitHub
parent 6c82d5e305
commit d7cded54e4
12 changed files with 67 additions and 57 deletions

View File

@@ -52,7 +52,7 @@ window.qBittorrent.ProgressBar = (function() {
'lightbg': 'var(--color-background-default)',
'lightfg': 'var(--color-text-default)'
};
if (parameters && $type(parameters) == 'object')
if (parameters && ($type(parameters) == 'object'))
$extend(vals, parameters);
if (vals.height < 12)
vals.height = 12;