Skip to content

Commit

Permalink
Fix double main invocation using shim mode (#295)
Browse files Browse the repository at this point in the history
* Use shim mode to prevent double main invocation

* Update changelog
  • Loading branch information
JordanMartinez authored Aug 12, 2022
1 parent e38f2e9 commit 38576f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Breaking changes:
New features:

Bugfixes:
- Fix double `main` invocation (#295 by @JordanMartinez)

Other improvements:

Expand Down
8 changes: 1 addition & 7 deletions client/public/frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
window.esmsInitOptions = {
// -- Hooks --
// Module load error
onerror: (e) => {
console.log("Error while loading module: ");
console.log(e);
throw e;
},
shimMode: true,
};
</script>
<!--
Expand Down

0 comments on commit 38576f4

Please sign in to comment.