Commit 4d4f7656 authored by Jelte Liebrand's avatar Jelte Liebrand Committed by GitHub

Fixing typo in example code

Was spending quite some time figuring out why my app was not receiving any messages... ;-)
parent 7542ab55
......@@ -96,7 +96,7 @@ const thread = new Thread('path/to/thread.js');
thread.postMessage('hello');
// listen for messages
thread.onMessage = (message) => console.log(message);
thread.onmessage = (message) => console.log(message);
// stop the JS process
thread.terminate();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment