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

@@ -94,7 +94,7 @@ window.qBittorrent.PropPeers = (function() {
torrentPeersTable.altRow();
if (response['show_flags']) {
if (show_flags != response['show_flags']) {
if (show_flags !== response['show_flags']) {
show_flags = response['show_flags'];
torrentPeersTable.columns['country'].force_hide = !show_flags;
torrentPeersTable.updateColumn('country');