mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
Allow execusion of scripts of type module (#797)
This commit is contained in:
parent
4b572b8e3d
commit
43becfb144
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user