Skip to content

Commit

Permalink
feat: replace deprecated process.browser in web worker
Browse files Browse the repository at this point in the history
  • Loading branch information
ymekuria committed Jul 13, 2023
1 parent 06f7f95 commit f9fcdb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export type ZkappWorkerReponse = {
id: number;
data: any;
};
if (process.browser) {
if (typeof window !== 'undefined') {
addEventListener(
'message',
async (event: MessageEvent<ZkappWorkerRequest>) => {
Expand Down

0 comments on commit f9fcdb2

Please sign in to comment.