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:
parent
ae346cff6b
commit
b5d891ed6a
3 changed files with 44 additions and 0 deletions
10
Base/res/html/misc/worker.js
Normal file
10
Base/res/html/misc/worker.js
Normal 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");
|
Loading…
Add table
Add a link
Reference in a new issue