summaryrefslogtreecommitdiffstatshomepage
path: root/src/htmx.js
diff options
context:
space:
mode:
authorCarson Gross <carson@bigsky.software>2024-01-25 18:16:26 -0700
committerCarson Gross <carson@bigsky.software>2024-01-25 18:16:26 -0700
commitcf3ece96abbf93d23e5641f5d7b86c3cfef54048 (patch)
treec6f9a63af3c2d47a3daeb2bb5628dd0ed05341ab /src/htmx.js
parentdee3abbd9a86ba300fd99c027547345b9e64b52b (diff)
downloadhtmx-cf3ece96abbf93d23e5641f5d7b86c3cfef54048.tar.gz
htmx-cf3ece96abbf93d23e5641f5d7b86c3cfef54048.zip
lmao
Diffstat (limited to 'src/htmx.js')
-rw-r--r--src/htmx.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/htmx.js b/src/htmx.js
index f63c619b..890139a3 100644
--- a/src/htmx.js
+++ b/src/htmx.js
@@ -311,10 +311,7 @@ var htmx = (function() {
} catch (e) {
logError(e)
} finally {
- // remove old script element, but only if it is still in DOM
- if (script.parentElement) {
- script.remove()
- }
+ script.remove()
}
}
})