delete apply.ts

This commit is contained in:
velzie 2024-07-30 07:29:56 -04:00
parent e4b5691ebf
commit cccf051bbc
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F

View file

@ -1,18 +0,0 @@
import { ScramjetClient } from "../client";
export default function (client: ScramjetClient, self: typeof globalThis) {
// do we need this?
client.Proxy(
[
"Function.prototype.call",
"Function.prototype.bind",
"Function.prototype.apply",
],
{
apply(ctx) {
if (ctx.args[0] === client.windowProxy) ctx.args[0] = self;
if (ctx.args[0] === client.documentProxy) ctx.args[0] = self.document;
},
}
);
}