mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 04:42:16 +00:00
ad logging
This commit is contained in:
1 parent
dc12267835
commit
b02faced22
1 file changed
+3
@@ -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);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user