fix: proxy events from workers

This commit is contained in:
Percs 2024-10-12 02:34:46 -05:00
parent 13e656e0dc
commit 59782b9a30

View file

@ -143,7 +143,12 @@ export default function (client: ScramjetClient, self: Self) {
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) {
const keys = Reflect.ownKeys(target);