This commit is contained in:
tamat
2020-02-15 01:45:16 +01:00
parent 5cef341c29
commit b550042709
4 changed files with 36 additions and 36 deletions

View File

@@ -190,9 +190,9 @@
//used to know which nodes create when dragging files to the canvas
if (base_class.supported_extensions) {
for (var i in base_class.supported_extensions) {
this.node_types_by_file_extension[
base_class.supported_extensions[i].toLowerCase()
] = base_class;
var ext = base_class.supported_extensions[i];
if(ext && ext.constructor === String)
this.node_types_by_file_extension[ ext.toLowerCase() ] = base_class;
}
}
},