mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user