From 96166353ae5f2af1c3d2fff17198d349e0ed18b7 Mon Sep 17 00:00:00 2001 From: ljleb Date: Sat, 9 Dec 2023 03:13:45 -0500 Subject: [PATCH] reload full (#191) --- javascript/compute-height.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/javascript/compute-height.js b/javascript/compute-height.js index 4ceb382..246c4b1 100644 --- a/javascript/compute-height.js +++ b/javascript/compute-height.js @@ -52,8 +52,7 @@ function setupComfyuiTabEvents() { function reloadComfyuiIFrames() { getWorkflowTypeIds().forEach(id => { - const comfyuiFrame = getWorkflowTypeIFrame(id); - reloadFrameElement(comfyuiFrame); + setupIFrame(id); }); } @@ -151,7 +150,7 @@ function setupIFrame(workflowTypeId) { const base_src = iframe.getAttribute("base_src"); const iframe_src = base_src + "?" + iframeSearchParams.toString(); if (iframe.src !== iframe_src) { - iframe.src =iframe_src; + iframe.src = iframe_src; } else { reloadFrameElement(iframe);