mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 18:35:17 +00:00
fix structuredClone undefined error;
This commit is contained in:
parent
0d8f376446
commit
076f3e6310
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user