Merge branch 'main' of github.com:storytold/storyteller-board into main

This commit is contained in:
Michael Chung committed 2024-09-18 17:59:25 -04:00
commit 390b4696df
1 file changed
+3
+3
View File
@@ -1,7 +1,10 @@
onconnect = function (event) {
console.log('worker loaded');
const port = event.ports[0];
port.onmessage = function (e) {
console.log('worker message received');
const workerResult = `Result: ${e.data[0] * e.data[1]}`;
port.postMessage(workerResult);
};