Skip to content

Commit 38576f4

Browse files
Fix double main invocation using shim mode (#295)
* Use shim mode to prevent double main invocation * Update changelog
1 parent e38f2e9 commit 38576f4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Breaking changes:
99
New features:
1010

1111
Bugfixes:
12+
- Fix double `main` invocation (#295 by @JordanMartinez)
1213

1314
Other improvements:
1415

client/public/frame.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88
<script>
99
window.esmsInitOptions = {
10-
// -- Hooks --
11-
// Module load error
12-
onerror: (e) => {
13-
console.log("Error while loading module: ");
14-
console.log(e);
15-
throw e;
16-
},
10+
shimMode: true,
1711
};
1812
</script>
1913
<!--

0 commit comments

Comments
 (0)