Skip to content

Commit

Permalink
prevent race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Feb 19, 2025
1 parent 620901d commit 76a7635
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 251 deletions.
8 changes: 3 additions & 5 deletions packages/transport-chrome/src/session-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ export class CRSessionClient {

// listen to client
this.clientPort.addEventListener('message', this.clientListener);
if (globalThis.__DEV__) {
this.clientPort.addEventListener('messageerror', ev =>
console.warn('CRSessionClient.clientPort messageerror', ev),
);
}
this.clientPort.addEventListener('messageerror', ev =>
console.warn('CRSessionClient.clientPort messageerror', ev),
);
this.clientPort.start();
}

Expand Down
Loading

0 comments on commit 76a7635

Please sign in to comment.