Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jasheloper authored Oct 25, 2024
1 parent 0dade57 commit 21a27fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion name-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ addEventListener("message", (message) => {
console.log("Message received from main: ", message.data);
if(message.data.command === "generate") {
const generatedName = nameGen(firstNames);
console.log("Generated name:", generatedName);
console.log("Output from worker:", generatedName);
postMessage(generatedName);
}
});
Expand Down

0 comments on commit 21a27fe

Please sign in to comment.