From cccf051bbc65144ea77bdf8d97b20fa8f80ae52c Mon Sep 17 00:00:00 2001 From: velzie Date: Tue, 30 Jul 2024 07:29:56 -0400 Subject: [PATCH] delete apply.ts --- src/client/shared/apply.ts | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/client/shared/apply.ts diff --git a/src/client/shared/apply.ts b/src/client/shared/apply.ts deleted file mode 100644 index b7ff4c8..0000000 --- a/src/client/shared/apply.ts +++ /dev/null @@ -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; - }, - } - ); -}