Commit 076f3e63 authored by karrycharon's avatar karrycharon
Browse files

fix structuredClone undefined error;

parent 0d8f3764
......@@ -1297,7 +1297,13 @@ export class ComfyApp {
let reset_invalid_values = false;
if (!graphData) {
graphData = structuredClone(defaultGraph);
if (typeof structuredClone === "undefined")
{
graphData = JSON.parse(JSON.stringify(defaultGraph));
}else
{
graphData = structuredClone(defaultGraph);
}
reset_invalid_values = true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment