1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:27:42 +00:00

Base+LibWeb: Add test case for Workers on welcome homepage

This commit is contained in:
serenitydev 2022-02-14 16:45:55 -05:00 committed by Andreas Kling
parent ae346cff6b
commit b5d891ed6a
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,10 @@
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");