mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 23:10:02 -04:00
fix: proxy events from workers
This commit is contained in:
parent
13e656e0dc
commit
59782b9a30
1 changed files with 6 additions and 1 deletions
|
@ -143,7 +143,12 @@ export default function (client: ScramjetClient, self: Self) {
|
||||||
|
|
||||||
if (!iswindow) return;
|
if (!iswindow) return;
|
||||||
|
|
||||||
const targets = [self.window, self.HTMLElement.prototype];
|
const targets = [
|
||||||
|
self.window,
|
||||||
|
self.HTMLElement.prototype,
|
||||||
|
self.MessagePort.prototype,
|
||||||
|
];
|
||||||
|
if (self.Worker) targets.push(self.Worker.prototype);
|
||||||
|
|
||||||
for (const target of targets) {
|
for (const target of targets) {
|
||||||
const keys = Reflect.ownKeys(target);
|
const keys = Reflect.ownKeys(target);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue