1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-06 09:34:05 +00:00

Add further logging to worker

This commit is contained in:
tobspr 2020-08-10 19:42:10 +02:00
parent 1802e545d4
commit 0d555e22c7

View File

@ -14,6 +14,8 @@ const salt = accessNestedPropertyReverse(globalConfig, ["file", "info"]);
onmessage = function (event) {
const { jobId, job, data } = event.data;
console.log("[worker] Received message:");
console.log(JSON.stringify(event.data));
const result = performJob(job, data);
postMessage({ jobId, result });
};