Apply new code format standard (#217)

This commit is contained in:
Chenlei Hu
2024-07-25 10:10:18 -04:00
committed by GitHub
parent 19c70d95d3
commit e179f75387
121 changed files with 11898 additions and 11983 deletions

View File

@@ -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']
}
},
});
}
})