From 707a66391ebb9a7c3ff3b5ec32194a0b850cf240 Mon Sep 17 00:00:00 2001 From: TomoyukiMizuma Date: Thu, 24 Aug 2023 09:24:19 +0900 Subject: [PATCH] add comment --- web/scripts/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });