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:
parent
c9c6f41aad
commit
d9d98439b2
@ -43,6 +43,9 @@ var RED = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('body').append(newScript);
|
$('body').append(newScript);
|
||||||
|
if( $(el).attr('type') === "module"){
|
||||||
|
newScript.type = "module"
|
||||||
|
}
|
||||||
newScript.src = RED.settings.apiRootUrl+srcUrl;
|
newScript.src = RED.settings.apiRootUrl+srcUrl;
|
||||||
hasDeferred = true;
|
hasDeferred = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user