Skip to content

Commit

Permalink
chore: add log in the worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
edysegura committed Aug 23, 2023
1 parent 3e40195 commit 2173c30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web-workers/js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

self.onmessage = ({ data }) => {
// do something heavy processing here
console.log("I'm in another JS Thread!! aeee!")
self.postMessage('You said: ' + data)
}
}

0 comments on commit 2173c30

Please sign in to comment.