mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
WebUI: enforce strict comparison operators
This commit is contained in:
parent
75e2ae2fa0
commit
4945ed576a
19 changed files with 70 additions and 68 deletions
|
@ -506,7 +506,7 @@ const initializeWindows = function() {
|
|||
|
||||
renameFN = function() {
|
||||
const hashes = torrentsTable.selectedRowsIds();
|
||||
if (hashes.length == 1) {
|
||||
if (hashes.length === 1) {
|
||||
const hash = hashes[0];
|
||||
const row = torrentsTable.rows[hash];
|
||||
if (row) {
|
||||
|
@ -529,7 +529,7 @@ const initializeWindows = function() {
|
|||
|
||||
renameFilesFN = function() {
|
||||
const hashes = torrentsTable.selectedRowsIds();
|
||||
if (hashes.length == 1) {
|
||||
if (hashes.length === 1) {
|
||||
const hash = hashes[0];
|
||||
const row = torrentsTable.rows[hash];
|
||||
if (row) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue