Allow execusion of scripts of type module (#797)

This commit is contained in:
Bo 2022-02-04 11:52:18 -06:00 committed by GitHub
parent 4b572b8e3d
commit 43becfb144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1431,7 +1431,7 @@ return (function () {
}
function evalScript(script) {
if (script.type === "text/javascript" || script.type === "") {
if (script.type === "text/javascript" || script.type === "module" || script.type === "") {
var newScript = getDocument().createElement("script");
forEach(script.attributes, function (attr) {
newScript.setAttribute(attr.name, attr.value);