Skip to content

Commit b550042

Browse files
author
tamat
committed
fix
1 parent 5cef341 commit b550042

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

build/litegraph.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@
192192
//used to know which nodes create when dragging files to the canvas
193193
if (base_class.supported_extensions) {
194194
for (var i in base_class.supported_extensions) {
195-
this.node_types_by_file_extension[
196-
base_class.supported_extensions[i].toLowerCase()
197-
] = base_class;
195+
var ext = base_class.supported_extensions[i];
196+
if(ext && ext.constructor === String)
197+
this.node_types_by_file_extension[ ext.toLowerCase() ] = base_class;
198198
}
199199
}
200200
},

0 commit comments

Comments
 (0)