From bae6071ac024f9ffb8355fa3c7f908858082cc9e Mon Sep 17 00:00:00 2001 From: velzie Date: Fri, 18 Oct 2024 15:11:15 -0400 Subject: [PATCH] Revert "I love when browsers LIE to me" This reverts commit c37caff949ed0d7ba6792412dedc76960cf2d974. --- src/client/dom/mouse.ts | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/client/dom/mouse.ts diff --git a/src/client/dom/mouse.ts b/src/client/dom/mouse.ts deleted file mode 100644 index 2e0c26c..0000000 --- a/src/client/dom/mouse.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ScramjetClient } from "../client"; - -export default function (client: ScramjetClient, self: typeof window) { - client.Proxy("MouseEvent.prototype.initMouseEvent", { - apply(ctx) { - // Proxy(Window) instanceof Window SHOULD return true. But uhh, it doesn't. - ctx.args[3] = self; - - ctx.call(); - }, - }); -}