Commit 6e2f05f7 authored by Travis Nuttall's avatar Travis Nuttall Committed by GitHub

Merge pull request #4 from jliebrand/patch-1

Fixing typo in example code
parents 7542ab55 4d4f7656
...@@ -96,7 +96,7 @@ const thread = new Thread('path/to/thread.js'); ...@@ -96,7 +96,7 @@ const thread = new Thread('path/to/thread.js');
thread.postMessage('hello'); thread.postMessage('hello');
// listen for messages // listen for messages
thread.onMessage = (message) => console.log(message); thread.onmessage = (message) => console.log(message);
// stop the JS process // stop the JS process
thread.terminate(); 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