Skip to content

Commit

Permalink
es6 to es5
Browse files Browse the repository at this point in the history
  • Loading branch information
ahollandECS committed Nov 7, 2023
1 parent 5610f33 commit d65939d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3742,7 +3742,7 @@ return (function () {
if (isReady || getDocument().readyState === 'complete') {
fn();
} else {
getDocument().addEventListener('readystatechange', () => ready(fn), {once:true});
getDocument().addEventListener('readystatechange', function() {ready(fn)}, {once:true});
}
}

Expand Down

0 comments on commit d65939d

Please sign in to comment.