Skip to content

Commit

Permalink
fix(playground): dispatch bubbling events on document
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Apr 17, 2024
1 parent 70ede17 commit 7b835fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/public/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
document.body.appendChild(script);

["DOMContentLoaded", "readystatechange", "load"].forEach((type) => {
dispatchEvent(new Event(type));
document.dispatchEvent(new Event(type, { bubbles: true }));
});
initialized = true;
}
Expand Down

0 comments on commit 7b835fb

Please sign in to comment.