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
e7d664c1
Commit
e7d664c1
authored
Feb 19, 2023
by
m957ymj75urz
Browse files
jankyness fix : do not wait for the server response to restore prompt
parent
f6df7ce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
webshit/index.html
webshit/index.html
+10
-4
No files found.
webshit/index.html
View file @
e7d664c1
...
...
@@ -418,10 +418,6 @@ function promptPosted(data)
wid
.
to_randomize
.
value
=
Math
.
floor
(
Math
.
random
()
*
1125899906842624
);
}
}
// restore initial values replaced by dynamic prompting
if
(
wid
.
dynamic_prompt
&&
wid
.
dynamic_prompt
===
true
)
wid
.
value
=
wid
.
value_initial
;
}
}
...
...
@@ -451,6 +447,16 @@ function postPrompt(number) {
// console.log(JSON.stringify(prompt));
// console.log(JSON.stringify(graph.serialize()));
// restore initial values replaced by dynamic prompting
for
(
let
x
in
graph
.
_nodes_by_id
)
{
let
n
=
graph
.
_nodes_by_id
[
x
];
for
(
let
w
in
n
.
widgets
)
{
let
wid
=
n
.
widgets
[
w
];
if
(
wid
.
dynamic_prompt
&&
wid
.
dynamic_prompt
===
true
)
wid
.
value
=
wid
.
value_initial
;
}
}
}
...
...
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