mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: disallow number literals with zero fractions or dangling dots
Javascript treats them all the same as `Number`.
This commit is contained in:
@@ -340,7 +340,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
||||
else
|
||||
there_are_f_l_piece_prio = true;
|
||||
|
||||
if (data["progress"] !== 1.0) // not downloaded
|
||||
if (data["progress"] !== 1) // not downloaded
|
||||
all_are_downloaded = false;
|
||||
else if (data["super_seeding"] !== true)
|
||||
all_are_super_seeding = false;
|
||||
|
||||
Reference in New Issue
Block a user