mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 18:35:17 +00:00
11 lines
293 B
JavaScript
11 lines
293 B
JavaScript
import { app } from "/scripts/app.js";
|
|
|
|
app.registerExtension({
|
|
name: "Comfy.UploadImage",
|
|
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
|
if (nodeData.name === "UploadImage" || nodeData.name === "UploadImageMask") {
|
|
nodeData.input.required.upload = ["IMAGEUPLOAD"];
|
|
}
|
|
},
|
|
});
|