Skip to content

Commit

Permalink
reload full (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb authored Dec 9, 2023
1 parent 08bbf36 commit 9616635
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions javascript/compute-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ function setupComfyuiTabEvents() {

function reloadComfyuiIFrames() {
getWorkflowTypeIds().forEach(id => {
const comfyuiFrame = getWorkflowTypeIFrame(id);
reloadFrameElement(comfyuiFrame);
setupIFrame(id);
});
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9616635

Please sign in to comment.