Skip to content

Commit

Permalink
One more place for optional coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 21, 2024
1 parent 090b798 commit 489284f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerHelpers.no-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
function waitForMsgType(target, type) {
return new Promise(resolve => {
target.addEventListener('message', function onMsg({ data }) {
if (data == null || data.type !== type) return;
if (data?.type !== type) return;
target.removeEventListener('message', onMsg);
resolve(data);
});
Expand Down

0 comments on commit 489284f

Please sign in to comment.