mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 17:24:07 +00:00
Remove LGraphNode.supported_extensions (#448)
This commit is contained in:
@@ -143,7 +143,6 @@ export class LGraphNode implements Positionable, IPinnable {
|
||||
static MAX_CONSOLE?: number
|
||||
static type?: string
|
||||
static category?: string
|
||||
static supported_extensions?: string[]
|
||||
static filter?: string
|
||||
static skip_list?: boolean
|
||||
|
||||
|
||||
@@ -360,16 +360,6 @@ export class LiteGraphGlobal {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
})
|
||||
|
||||
// used to know which nodes to create when dragging files to the canvas
|
||||
if (base_class.supported_extensions) {
|
||||
for (const i in base_class.supported_extensions) {
|
||||
const ext = base_class.supported_extensions[i]
|
||||
if (ext && typeof ext === "string") {
|
||||
this.node_types_by_file_extension[ext.toLowerCase()] = base_class
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.registered_node_types[type] = base_class
|
||||
|
||||
Reference in New Issue
Block a user