Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb committed Aug 13, 2023
1 parent e44d7ce commit 6b8363d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions javascript/compute-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function changeDisplayedWorkflowType(targetWorkflowType) {
}

document.addEventListener("DOMContentLoaded", () => {
onComfyuiTabLoaded(clearEnabledWorkflowTypes);
onComfyuiTabLoaded(clearEnabledDisplayNames);
onComfyuiTabLoaded(setupComfyuiTabEvents);
});

Expand All @@ -32,8 +32,8 @@ function onComfyuiTabLoaded(callback) {
callback();
}

function clearEnabledWorkflowTypes() {
for (const clearButton of getClearEnabledWorkflowTypesButtons()) {
function clearEnabledDisplayNames() {
for (const clearButton of getClearEnabledDisplayNamesButtons()) {
clearButton.click();
}
}
Expand Down Expand Up @@ -89,7 +89,7 @@ function updateFooterStyle() {
}
}

function getClearEnabledWorkflowTypesButtons() {
function getClearEnabledDisplayNamesButtons() {
return [
document.getElementById("script_txt2txt_comfyui_clear_enabled_display_names") ?? null,
document.getElementById("script_img2img_comfyui_clear_enabled_display_names") ?? null,
Expand Down

0 comments on commit 6b8363d

Please sign in to comment.