diff options
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() } } }) |