diff options
author | Carson Gross <carson@bigsky.software> | 2024-01-25 18:16:26 -0700 |
---|---|---|
committer | Carson Gross <carson@bigsky.software> | 2024-01-25 18:16:26 -0700 |
commit | cf3ece96abbf93d23e5641f5d7b86c3cfef54048 (patch) | |
tree | c6f9a63af3c2d47a3daeb2bb5628dd0ed05341ab /src/htmx.js | |
parent | dee3abbd9a86ba300fd99c027547345b9e64b52b (diff) | |
download | htmx-cf3ece96abbf93d23e5641f5d7b86c3cfef54048.tar.gz htmx-cf3ece96abbf93d23e5641f5d7b86c3cfef54048.zip |
lmao
Diffstat (limited to 'src/htmx.js')
-rw-r--r-- | src/htmx.js | 5 |
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() } } }) |