Fix frontend webp prompt handling

This commit is contained in:
Chaoses-Ib 2024-02-02 13:27:03 +08:00
parent 4c54c2ec0f
commit 951a2064a3
1 changed files with 2 additions and 0 deletions

View File

@ -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")) {