Skip to content

Commit

Permalink
fix: onMessage nativeEvent field
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
andreialecu authored and jsamr committed Sep 1, 2021
1 parent 0a2c3e0 commit d89f11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webshell/src/hooks/useWebshell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function useWebMessageBus(
reporter.dispatchWebLog(severity, identifier, body);
}
} else {
typeof onMessage === 'function' && onMessage(nativeEvent);
typeof onMessage === 'function' && onMessage({ nativeEvent });
}
},
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit d89f11c

Please sign in to comment.