mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
Notes:
github-actions[bot]
2025-02-28 13:52:18 +00:00
Author: https://github.com/Gingeh Commit: https://github.com/LadybirdBrowser/ladybird/commit/93e2babc64d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3714 Reviewed-by: https://github.com/awesomekling
@@ -1,3 +1,5 @@
|
||||
import "./worker.mjs";
|
||||
|
||||
self.onmessage = ({ data }) => {
|
||||
self.postMessage(`Worker responding to: ${data}`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user