WebUI: fix failed conversion to number

The value has unit suffix (`px`) and require using `parseInt()` for conversion.
Fix up f73f31619d.
This commit is contained in:
Chocobo1 2024-11-16 22:03:58 +08:00
commit cc1739bc5b
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

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