Formatting

This commit is contained in:
2026-01-08 16:27:19 +01:00
parent c038ff92c0
commit 910420b5d9
3 changed files with 12 additions and 14 deletions

View File

@@ -6,10 +6,10 @@ async function spawnUserJavaScriptWorker(asset) {
console.error(`Unable to fetch asset with id:${id} from url:${asset.url}`, error);
return;
}
const blob = new Blob([assetSource], { type: 'application/javascript' });
const blob = new Blob([assetSource], { type: "application/javascript" });
const worker = new Worker(URL.createObjectURL(blob));
worker.onmessage = (event) => {
console.log('Message from worker:', event.data);
}
console.log("Message from worker:", event.data);
};
worker.postMessage(data);
}