WebUI: prefer Number static properties over global ones

`Number` purpose is modularization of globals in ECMAScript 2015.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseInt#number.parseint_vs._parseint
This commit is contained in:
Chocobo1
2025-08-24 20:02:59 +08:00
parent fb4b266828
commit 86acc01b1a
5 changed files with 10 additions and 6 deletions

View File

@@ -285,7 +285,7 @@ window.qBittorrent.DynamicTable ??= (() => {
const onStart = function(el, event) {
if (this.canResize) {
this.currentHeaderAction = "resize";
this.startWidth = parseInt(this.resizeTh.style.width, 10);
this.startWidth = Number.parseInt(this.resizeTh.style.width, 10);
}
else {
this.currentHeaderAction = "drag";