mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 08:49:36 +00:00
Apply new code format standard (#217)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { app } from "../../scripts/app";
|
||||
import { ComfyNodeDef } from "@/types/apiTypes";
|
||||
import { app } from '../../scripts/app'
|
||||
import { ComfyNodeDef } from '@/types/apiTypes'
|
||||
|
||||
// Adds an upload button to the nodes
|
||||
|
||||
app.registerExtension({
|
||||
name: "Comfy.UploadImage",
|
||||
name: 'Comfy.UploadImage',
|
||||
async beforeRegisterNodeDef(nodeType, nodeData: ComfyNodeDef, app) {
|
||||
if (nodeData?.input?.required?.image?.[1]?.image_upload === true) {
|
||||
nodeData.input.required.upload = ["IMAGEUPLOAD"];
|
||||
nodeData.input.required.upload = ['IMAGEUPLOAD']
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user