fix px in sidebarWidth param
This commit is contained in:
@@ -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
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user