Revert "I love when browsers LIE to me"

This reverts commit c37caff949.
This commit is contained in:
velzie 2024-10-18 15:11:15 -04:00
parent b09b3c1d0d
commit bae6071ac0
No known key found for this signature in database
GPG key ID: AA51AEFB0A1F3820

View file

@ -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();
},
});
}