Commit 09922601 authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'Fix-structuredClone-error-with-early-chrome-version-browser' of...

Merge branch 'Fix-structuredClone-error-with-early-chrome-version-browser' of https://github.com/KarryCharon/ComfyUI
parents 94e4fe39 076f3e63
...@@ -1297,7 +1297,13 @@ export class ComfyApp { ...@@ -1297,7 +1297,13 @@ export class ComfyApp {
let reset_invalid_values = false; let reset_invalid_values = false;
if (!graphData) { if (!graphData) {
if (typeof structuredClone === "undefined")
{
graphData = JSON.parse(JSON.stringify(defaultGraph));
}else
{
graphData = structuredClone(defaultGraph); graphData = structuredClone(defaultGraph);
}
reset_invalid_values = true; 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