Skip to content

Commit

Permalink
Merge pull request #665 from JohnLunsford/netcodeBugFix
Browse files Browse the repository at this point in the history
proposed fix for issue #664
  • Loading branch information
aduros authored Oct 3, 2023
2 parents 700c292 + 1f5f8cf commit fe6a1d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtimes/web/src/ui/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ export class App extends LitElement {
this.netplay.join(hostPeerId);
} else {
await runtime.load(await loadCartWasm());

if (DEV_NETPLAY) {
this.copyNetplayLink();
}
}

let devtoolsManager = {
Expand All @@ -153,6 +149,10 @@ export class App extends LitElement {
runtime.start();
}

if (DEV_NETPLAY) {
this.copyNetplayLink();
}

if (import.meta.env.DEV) {
devkit.websocket?.addEventListener("message", async event => {
switch (event.data) {
Expand Down

0 comments on commit fe6a1d5

Please sign in to comment.