mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Prevent crash when loading module in worker
The import map is defined for all global objects, not just the window.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import "./worker.mjs";
|
||||
|
||||
self.onmessage = ({ data }) => {
|
||||
self.postMessage(`Worker responding to: ${data}`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user