Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
951a2064
Commit
951a2064
authored
Feb 02, 2024
by
Chaoses-Ib
Browse files
Fix frontend webp prompt handling
parent
4c54c2ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
web/scripts/app.js
web/scripts/app.js
+2
-0
No files found.
web/scripts/app.js
View file @
951a2064
...
...
@@ -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
"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment