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
46b674c9
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "d7fa417bfa24f98fb20495c221faff818ebf5988"
Commit
46b674c9
authored
Mar 20, 2023
by
comfyanonymous
Browse files
Make saved json more pretty.
parent
840464af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/scripts/ui.js
web/scripts/ui.js
+1
-1
No files found.
web/scripts/ui.js
View file @
46b674c9
...
@@ -310,7 +310,7 @@ export class ComfyUI {
...
@@ -310,7 +310,7 @@ export class ComfyUI {
$el
(
"
button
"
,
{
$el
(
"
button
"
,
{
textContent
:
"
Save
"
,
textContent
:
"
Save
"
,
onclick
:
()
=>
{
onclick
:
()
=>
{
const
json
=
JSON
.
stringify
(
app
.
graph
.
serialize
());
// convert the data to a JSON string
const
json
=
JSON
.
stringify
(
app
.
graph
.
serialize
()
,
null
,
2
);
// convert the data to a JSON string
const
blob
=
new
Blob
([
json
],
{
type
:
"
application/json
"
});
const
blob
=
new
Blob
([
json
],
{
type
:
"
application/json
"
});
const
url
=
URL
.
createObjectURL
(
blob
);
const
url
=
URL
.
createObjectURL
(
blob
);
const
a
=
$el
(
"
a
"
,
{
const
a
=
$el
(
"
a
"
,
{
...
...
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