mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-19 00:47:01 +08:00
better handle filename prompt
Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
This commit is contained in:
parent
bb12418e66
commit
df883feb45
@ -534,8 +534,8 @@ export class ComfyUI {
|
|||||||
let filename = "workflow.json";
|
let filename = "workflow.json";
|
||||||
if (promptFilename.value) {
|
if (promptFilename.value) {
|
||||||
filename = prompt("Save workflow as:", filename);
|
filename = prompt("Save workflow as:", filename);
|
||||||
if (filename === null) return;
|
if (!filename) return;
|
||||||
if (!filename.endsWith(".json")) {
|
if (!filename.toLowerCase().endsWith(".json")) {
|
||||||
filename += ".json";
|
filename += ".json";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user