From 43becfb1441cd514aa05a911a350ef4b73dec36d Mon Sep 17 00:00:00 2001 From: Bo Date: Fri, 4 Feb 2022 11:52:18 -0600 Subject: [PATCH] Allow execusion of scripts of type module (#797) --- src/htmx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmx.js b/src/htmx.js index c48e67e3..79d54618 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -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);