Fix workflow not importing from flac files on some systems.

This commit is contained in:
comfyanonymous 2024-06-30 15:51:54 -04:00
parent dbb7dd3b5e
commit 521421f53e
1 changed files with 1 additions and 1 deletions

View File

@ -2292,7 +2292,7 @@ export class ComfyApp {
} else { } else {
this.showErrorOnFileLoad(file); this.showErrorOnFileLoad(file);
} }
} else if (file.type === "audio/flac") { } else if (file.type === "audio/flac" || file.type === "audio/x-flac") {
const pngInfo = await getFlacMetadata(file); const pngInfo = await getFlacMetadata(file);
// Support loading workflows from that webp custom node. // Support loading workflows from that webp custom node.
const workflow = pngInfo?.workflow; const workflow = pngInfo?.workflow;