Skip to content

Commit c6d6968

Browse files
committed
handleMessage
1 parent 74597b6 commit c6d6968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function handleMessage (e, callback) {
2-
if (e.data.__emnapi__) {
2+
if (e && e.data && e.data.__emnapi__) {
33
const type = e.data.__emnapi__.type
44
const payload = e.data.__emnapi__.payload
55
callback(type, payload)

0 commit comments

Comments
 (0)