Minor syntax change
This commit is contained in:
parent
2ee4f2efc7
commit
1802e545d4
|
@ -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 });
|
||||
};
|
||||
|
|
Reference in New Issue