Skip to content

Commit

Permalink
Update web-workers/simple-shared-worker/multiply.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Dec 30, 2024
1 parent 6dd4621 commit a2605d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-workers/simple-shared-worker/multiply.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (!!window.SharedWorker) {
const myWorker = new SharedWorker("worker.js");

[first, second].forEach(input => {
input.onchange = function() {
input.onchange = () => {
myWorker.port.postMessage([first.value, second.value]);
console.log('Message posted to worker');
}
Expand Down

0 comments on commit a2605d6

Please sign in to comment.