mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-23 09:47:08 +03: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:
parent
6ddde3f4b6
commit
6578fd06fd
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,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";
|
||||
|
|
Loading…
Reference in a new issue