@@ -1428,7 +1428,7 @@ export class ComfyApp {
14281428 const { workflow, prompt } = await getAvifMetadata ( file )
14291429
14301430 if ( workflow ) {
1431- this . loadGraphData ( JSON . parse ( workflow ) , true , true , fileName , {
1431+ this . loadGraphData ( JSON . parse ( workflow ) , true , true , fileName , {
14321432 openSource
14331433 } )
14341434 return
@@ -1445,7 +1445,7 @@ export class ComfyApp {
14451445 const prompt = pngInfo ?. prompt || pngInfo ?. Prompt
14461446
14471447 if ( workflow ) {
1448- this . loadGraphData ( JSON . parse ( workflow ) , true , true , fileName , {
1448+ this . loadGraphData ( JSON . parse ( workflow ) , true , true , fileName , {
14491449 openSource
14501450 } )
14511451 return
@@ -1483,7 +1483,9 @@ export class ComfyApp {
14831483 const prompt = pngInfo ?. prompt || pngInfo ?. Prompt
14841484
14851485 if ( workflow ) {
1486- this . loadGraphData ( JSON . parse ( workflow ) , true , true , fileName , { openSource } )
1486+ this . loadGraphData ( JSON . parse ( workflow ) , true , true , fileName , {
1487+ openSource
1488+ } )
14871489 return
14881490 }
14891491 if ( prompt ) {
@@ -1494,7 +1496,9 @@ export class ComfyApp {
14941496 if ( file . type === 'video/webm' ) {
14951497 const webmInfo = await getFromWebmFile ( file )
14961498 if ( webmInfo . workflow ) {
1497- this . loadGraphData ( webmInfo . workflow , true , true , fileName , { openSource } )
1499+ this . loadGraphData ( webmInfo . workflow , true , true , fileName , {
1500+ openSource
1501+ } )
14981502 return
14991503 }
15001504 if ( webmInfo . prompt ) {
@@ -1512,7 +1516,9 @@ export class ComfyApp {
15121516 ) {
15131517 const mp4Info = await getFromIsobmffFile ( file )
15141518 if ( mp4Info . workflow ) {
1515- this . loadGraphData ( mp4Info . workflow , true , true , fileName , { openSource } )
1519+ this . loadGraphData ( mp4Info . workflow , true , true , fileName , {
1520+ openSource
1521+ } )
15161522 return
15171523 }
15181524 if ( mp4Info . prompt ) {
@@ -1523,7 +1529,9 @@ export class ComfyApp {
15231529 if ( file . type === 'image/svg+xml' || file . name ?. endsWith ( '.svg' ) ) {
15241530 const svgInfo = await getSvgMetadata ( file )
15251531 if ( svgInfo . workflow ) {
1526- this . loadGraphData ( svgInfo . workflow , true , true , fileName , { openSource } )
1532+ this . loadGraphData ( svgInfo . workflow , true , true , fileName , {
1533+ openSource
1534+ } )
15271535 return
15281536 }
15291537 if ( svgInfo . prompt ) {
@@ -1534,7 +1542,9 @@ export class ComfyApp {
15341542 if ( file . type === 'model/gltf-binary' || file . name ?. endsWith ( '.glb' ) ) {
15351543 const gltfInfo = await getGltfBinaryMetadata ( file )
15361544 if ( gltfInfo . workflow ) {
1537- this . loadGraphData ( gltfInfo . workflow , true , true , fileName , { openSource } )
1545+ this . loadGraphData ( gltfInfo . workflow , true , true , fileName , {
1546+ openSource
1547+ } )
15381548 return
15391549 }
15401550 if ( gltfInfo . prompt ) {
@@ -1555,7 +1565,13 @@ export class ComfyApp {
15551565 this . loadApiJson ( jsonContent , fileName )
15561566 return
15571567 }
1558- await this . loadGraphData ( JSON . parse ( readerResult ) , true , true , fileName , { openSource } )
1568+ await this . loadGraphData (
1569+ JSON . parse ( readerResult ) ,
1570+ true ,
1571+ true ,
1572+ fileName ,
1573+ { openSource }
1574+ )
15591575 }
15601576 reader . readAsText ( file )
15611577 return
0 commit comments