Fix workflow not importing from flac files on some systems. (#71)

This commit is contained in:
Chenlei Hu
2024-07-01 09:59:44 -04:00
committed by GitHub
parent ee6788a35e
commit 3799100811

View File

@@ -2312,7 +2312,7 @@ export class ComfyApp {
} else {
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 workflow = pngInfo?.workflow || pngInfo?.Workflow;
const prompt = pngInfo?.prompt || pngInfo?.Prompt;