mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 15:12:32 -06:00
WebUI: fix failed conversion to number
The value has unit suffix (`px`) and require using `parseInt()` for conversion.
Fix up f73f31619d.
PR #21862.
This commit is contained in:
@@ -254,7 +254,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||||||
const onStart = function(el, event) {
|
const onStart = function(el, event) {
|
||||||
if (this.canResize) {
|
if (this.canResize) {
|
||||||
this.currentHeaderAction = "resize";
|
this.currentHeaderAction = "resize";
|
||||||
this.startWidth = Number(this.resizeTh.style.width);
|
this.startWidth = parseInt(this.resizeTh.style.width, 10);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.currentHeaderAction = "drag";
|
this.currentHeaderAction = "drag";
|
||||||
|
|||||||
Reference in New Issue
Block a user