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:
Gingeh 2025-02-27 16:11:29 +11:00 committed by Andreas Kling
commit 93e2babc64
Notes: github-actions[bot] 2025-02-28 13:52:18 +00:00
4 changed files with 11 additions and 9 deletions

View file

@ -1,3 +1,5 @@
import "./worker.mjs";
self.onmessage = ({ data }) => {
self.postMessage(`Worker responding to: ${data}`);
};