Skip to content

Commit

Permalink
dont need to await
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb committed Aug 31, 2023
1 parent d57e758 commit 71b6b6a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions comfyui_custom_scripts/extensions/webuiNodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ app.registerExtension({
}
}
},
async setup() {
try {
await iframeRegisteredEvent;
} catch {
return;
}

app.loadGraphData();
},
async nodeCreated(node) {
let iframeInfo = null;

Expand All @@ -97,6 +88,9 @@ app.registerExtension({
// 240 and 40 are empirical values that seem to work
node.size = [240, 40 + distanceBetweenIoSlots * maxIoLength];
},
async setup() {
app.loadGraphData();
},
});

const webuiIoNodeNames = [
Expand Down

0 comments on commit 71b6b6a

Please sign in to comment.