Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix frontend webp prompt handling

Chaoses-Ib951a2064a34e
diff --git a/web/scripts/app.js b/web/scripts/app.js
index b3a848993..c1461d259 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -2107,6 +2107,8 @@ export class ComfyApp {
this.loadGraphData(JSON.parse(pngInfo.Workflow)); // Support loading workflows from that webp custom node.
} else if (pngInfo.prompt) {
this.loadApiJson(JSON.parse(pngInfo.prompt));
+ } else if (pngInfo.Prompt) {
+ this.loadApiJson(JSON.parse(pngInfo.Prompt)); // Support loading prompts from that webp custom node.
}
}
} else if (file.type === "application/json" || file.name?.endsWith(".json")) {