mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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:
parent
fc4a2eeba8
commit
93e2babc64
Notes:
github-actions[bot]
2025-02-28 13:52:18 +00:00
Author: https://github.com/Gingeh
Commit: 93e2babc64
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3714
Reviewed-by: https://github.com/awesomekling
4 changed files with 11 additions and 9 deletions
|
@ -1,3 +1,5 @@
|
|||
import "./worker.mjs";
|
||||
|
||||
self.onmessage = ({ data }) => {
|
||||
self.postMessage(`Worker responding to: ${data}`);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue