From bcd9ab40d3b3e517233d0a93fefad23ebe2302b8 Mon Sep 17 00:00:00 2001 From: EmmanuelMr18 Date: Tue, 17 Dec 2024 02:04:09 -0600 Subject: [PATCH] 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. --- web-plugin/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web-plugin/index.js b/web-plugin/index.js index de9e724..8989200 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -755,6 +755,7 @@ const ext = { "right", ); localStorage.setItem("Comfy.MenuPosition.Docked", "true"); + window.location.reload(); console.log("native mode manmanman"); } catch (error) { console.error("Error setting validation to false", error);