mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add further logging to worker
This commit is contained in:
@@ -14,6 +14,8 @@ const salt = accessNestedPropertyReverse(globalConfig, ["file", "info"]);
|
|||||||
|
|
||||||
onmessage = function (event) {
|
onmessage = function (event) {
|
||||||
const { jobId, job, data } = event.data;
|
const { jobId, job, data } = event.data;
|
||||||
|
console.log("[worker] Received message:");
|
||||||
|
console.log(JSON.stringify(event.data));
|
||||||
const result = performJob(job, data);
|
const result = performJob(job, data);
|
||||||
postMessage({ jobId, result });
|
postMessage({ jobId, result });
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user