From 46b674c9c29e2844887d340fdf505d18ce59be15 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Mon, 20 Mar 2023 02:23:47 -0400 Subject: [PATCH] Make saved json more pretty. --- web/scripts/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/scripts/ui.js b/web/scripts/ui.js index 51f9b52..58012fe 100644 --- a/web/scripts/ui.js +++ b/web/scripts/ui.js @@ -310,7 +310,7 @@ export class ComfyUI { $el("button", { textContent: "Save", 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 url = URL.createObjectURL(blob); const a = $el("a", {