Minor syntax change

This commit is contained in:
tobspr 2020-08-10 15:27:40 +02:00
parent 2ee4f2efc7
commit 1802e545d4
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ function accessNestedPropertyReverse(obj, keys) {
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);
postMessage({ jobId, result });
};