fix(setup): reload the app after adding the localstorage values
The current problem is that if you do `localsStorage.setItem()` the value is changed, but comfyUI doesn't detect the change because `ComfyActionbar` was already mounted. This is a quick fix where we basically trigger a reload of the app after docking the menu position.
This commit is contained in:
parent
ac843527d9
commit
bcd9ab40d3
@ -755,6 +755,7 @@ const ext = {
|
|||||||
"right",
|
"right",
|
||||||
);
|
);
|
||||||
localStorage.setItem("Comfy.MenuPosition.Docked", "true");
|
localStorage.setItem("Comfy.MenuPosition.Docked", "true");
|
||||||
|
window.location.reload();
|
||||||
console.log("native mode manmanman");
|
console.log("native mode manmanman");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error setting validation to false", error);
|
console.error("Error setting validation to false", error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user