diff --git a/web/scripts/ui.js b/web/scripts/ui.js index 3f54ab09d..ce5003646 100644 --- a/web/scripts/ui.js +++ b/web/scripts/ui.js @@ -779,7 +779,7 @@ export class ComfyUI { this.switch_workflow_combo = document.getElementById("comfy-switch-workflow-combo"); window.addEventListener("focus", () => { - // to need to keep the workflow_current_id and selectedIndex to be the same value + // to need to keep the workflow_current_id and selectedIndex to be the same value when working on workflows in multiple browser tabs or multiple windows localStorage.setItem("workflow_current_id", this.switch_workflow_combo.selectedIndex); });