|
|
|
@ -42,7 +42,7 @@ async function uploadMask(filepath, formData) {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
ComfyApp.clipspace.imgs[ComfyApp.clipspace['selectedIndex']] = new Image(); |
|
|
|
|
ComfyApp.clipspace.imgs[ComfyApp.clipspace['selectedIndex']].src = api.apiURL("/view?" + new URLSearchParams(filepath).toString() + app.getPreviewFormatParam()); |
|
|
|
|
ComfyApp.clipspace.imgs[ComfyApp.clipspace['selectedIndex']].src = api.apiURL("/view?" + new URLSearchParams(filepath).toString() + app.getPreviewFormatParam() + app.getRandParam()); |
|
|
|
|
|
|
|
|
|
if(ComfyApp.clipspace.images) |
|
|
|
|
ComfyApp.clipspace.images[ComfyApp.clipspace['selectedIndex']] = filepath; |
|
|
|
@ -657,4 +657,4 @@ app.registerExtension({
|
|
|
|
|
const context_predicate = () => ComfyApp.clipspace && ComfyApp.clipspace.imgs && ComfyApp.clipspace.imgs.length > 0 |
|
|
|
|
ClipspaceDialog.registerButton("MaskEditor", context_predicate, ComfyApp.open_maskeditor); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|