fix px in sidebarWidth param

This commit is contained in:
Nuked88
2024-09-11 19:33:36 +02:00
parent addb54e0f3
commit c203414abc
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -140,6 +140,12 @@ function saveSidebarPosition(sideb) {
function restoreSidebarWidth() {
//if getVar("sidebarWidth") contains px remove it
if (getVar("sidebarWidth") && getVar("sidebarWidth").includes('px')) {
setVar("sidebarWidth", getVar("sidebarWidth").replace('px', ''));
}
if (getVar("sidebarWidth") == null) {
setVar("sidebarWidth", 400);
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-n-sidebar"
description = "A simple sidebar for ComfyUI."
version = "1.5.6"
version = "1.5.7"
license = { file = "LICENSE" }
[project.urls]