Skip to content

Commit d89f11c

Browse files
andreialecujsamr
authored andcommitted
fix: onMessage nativeEvent field
Fixes #15
1 parent 0a2c3e0 commit d89f11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/webshell/src/hooks/useWebshell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function useWebMessageBus(
9090
reporter.dispatchWebLog(severity, identifier, body);
9191
}
9292
} else {
93-
typeof onMessage === 'function' && onMessage(nativeEvent);
93+
typeof onMessage === 'function' && onMessage({ nativeEvent });
9494
}
9595
},
9696
// eslint-disable-next-line react-hooks/exhaustive-deps

0 commit comments

Comments
 (0)