Skip to content

Commit

Permalink
more unnecessary complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb committed Aug 31, 2023
1 parent b6e60fc commit f4a7b26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions javascript/compute-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function updateFooterStyle() {

function getClearEnabledDisplayNamesButtons() {
return [
document.getElementById("script_txt2txt_comfyui_clear_enabled_display_names") ?? null,
document.getElementById("script_txt2txt_comfyui_clear_enabled_display_names") ?? document.getElementById("script_txt2img_comfyui_clear_enabled_display_names") ?? null,
document.getElementById("script_img2img_comfyui_clear_enabled_display_names") ?? null,
];
}
Expand Down Expand Up @@ -125,9 +125,7 @@ function getExtensionDynamicProperty(key) {
}

function reloadFrameElement(iframeElement) {
oldSrc = iframeElement.src;
iframeElement.src = '';
iframeElement.src = oldSrc;
iframeElement.src += "";
}

function setupIFrame(workflowTypeId) {
Expand Down

0 comments on commit f4a7b26

Please sign in to comment.