1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Minor syntax change

This commit is contained in:
tobspr 2020-08-10 15:27:40 +02:00
parent 2ee4f2efc7
commit 1802e545d4

View File

@ -12,7 +12,8 @@ function accessNestedPropertyReverse(obj, keys) {
const salt = accessNestedPropertyReverse(globalConfig, ["file", "info"]); const salt = accessNestedPropertyReverse(globalConfig, ["file", "info"]);
onmessage = function ({ data: { jobId, job, data } }) { onmessage = function (event) {
const { jobId, job, data } = event.data;
const result = performJob(job, data); const result = performJob(job, data);
postMessage({ jobId, result }); postMessage({ jobId, result });
}; };