From 234ba981d95e4a147574ad1c07ee92048295fa07 Mon Sep 17 00:00:00 2001 From: carson Date: Sun, 15 Nov 2020 19:04:19 -0700 Subject: [PATCH] remove last non-test eval --- src/htmx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmx.js b/src/htmx.js index a337a907..ad779a91 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -1165,7 +1165,7 @@ return (function () { function evalScript(script) { if (script.type === "text/javascript" || script.type === "") { try { - eval(script.innerText); + Function(script.innerText)(); } catch (e) { logError(e); }