mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
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:
parent
f4eec75488
commit
cc1739bc5b
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue