1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 15:35:07 +00:00
serenity/Base/res/html/misc/worker.js

10 lines
263 B
JavaScript

onmessage = evt => {
console.log("In Worker - Got message:", JSON.stringify(evt.data));
postMessage(JSON.stringify(evt.data));
};
console.log("In Worker - Loaded", this);
console.log("Keys: ", JSON.stringify(Object.keys(this)));
postMessage("loaded");