From ddf831494205c123d5e50053d901bcc7ce216fff Mon Sep 17 00:00:00 2001 From: Vincent Date: Sun, 4 Feb 2024 21:03:05 +0100 Subject: [PATCH] Lint code --- src/htmx.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/htmx.js b/src/htmx.js index 5f7ebdc8..75236897 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -291,7 +291,7 @@ var htmx = (function() { function duplicateScript(script) { const newScript = getDocument().createElement('script') - forEach(script.attributes, function (attr) { + forEach(script.attributes, function(attr) { newScript.setAttribute(attr.name, attr.value) }) newScript.textContent = script.textContent @@ -299,21 +299,21 @@ var htmx = (function() { if (htmx.config.inlineScriptNonce) { newScript.nonce = htmx.config.inlineScriptNonce } - return newScript; + return newScript } function isJavaScriptScriptNode(script) { - return script.matches('script') && (script.type === 'text/javascript' || script.type === 'module' || script.type === ''); + return script.matches('script') && (script.type === 'text/javascript' || script.type === 'module' || script.type === '') } // we have to make new copies of script tags that we are going to insert because // SOME browsers (not saying who, but it involves an element and an animal) don't // execute scripts created in