1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

allow script tags with src to reference esm modules

This commit is contained in:
Holger Will 2019-04-30 04:57:47 +02:00
parent c9c6f41aad
commit d9d98439b2
No known key found for this signature in database
GPG Key ID: CB94F160EF40F30A

View File

@ -43,6 +43,9 @@ var RED = (function() {
}
}
$('body').append(newScript);
if( $(el).attr('type') === "module"){
newScript.type = "module"
}
newScript.src = RED.settings.apiRootUrl+srcUrl;
hasDeferred = true;
} else {