Remove LGraphNode.supported_extensions (#448)

This commit is contained in:
Chenlei Hu
2025-02-03 17:26:37 -08:00
committed by GitHub
parent 0500d77665
commit 9d8e49b8f8
2 changed files with 0 additions and 11 deletions

View File

@@ -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

View File

@@ -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