add comment

This commit is contained in:
TomoyukiMizuma 2023-08-24 09:24:19 +09:00
parent 7c91559e64
commit 707a66391e

View File

@ -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);
});