16 lines
462 B
JavaScript
16 lines
462 B
JavaScript
import { app } from "/scripts/app.js";
|
|
|
|
app.registerExtension({
|
|
name: "Simple Load Image With Metadata",
|
|
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
|
if (nodeData.name === "Simple Load Image With Metadata") {
|
|
nodeData.INPUT_TYPES = {
|
|
upload: {
|
|
type: "IMAGEUPLOAD",
|
|
required: true,
|
|
default: null
|
|
}
|
|
};
|
|
}
|
|
},
|
|
}); |