Skip to content

Commit bb4bad9

Browse files
authored
fix: correctly add DOM listeners (#1179)
fix adding DOM listeners
1 parent c9574e7 commit bb4bad9

File tree

1 file changed

+1
-1
lines changed
  • src/pydata_sphinx_theme/assets/scripts

1 file changed

+1
-1
lines changed

src/pydata_sphinx_theme/assets/scripts/mixin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
*/
1010
export function documentReady(callback) {
1111
if (document.readyState != "loading") callback();
12-
else document.addEventListener("DOMContentLoaded", callback());
12+
else document.addEventListener("DOMContentLoaded", callback);
1313
}

0 commit comments

Comments
 (0)