mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2154 from Holger-Will/dev-esm
allow script tags with src to reference esm modules
This commit is contained in:
commit
1d91ac1169
@ -42,6 +42,9 @@ var RED = (function() {
|
|||||||
done()
|
done()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($(el).attr('type') === "module") {
|
||||||
|
newScript.type = "module";
|
||||||
|
}
|
||||||
$("#red-ui-editor-node-configs").append(newScript);
|
$("#red-ui-editor-node-configs").append(newScript);
|
||||||
newScript.src = RED.settings.apiRootUrl+srcUrl;
|
newScript.src = RED.settings.apiRootUrl+srcUrl;
|
||||||
hasDeferred = true;
|
hasDeferred = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user