From 3ece6a555e51f3691b605b0d9b31cb2b73d9be0b Mon Sep 17 00:00:00 2001 From: velzie Date: Mon, 21 Oct 2024 22:20:53 -0400 Subject: [PATCH] it's not that deep you can stop yelling at me now --- src/client/shared/wrap.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/shared/wrap.ts b/src/client/shared/wrap.ts index 26be769..d8d57bd 100644 --- a/src/client/shared/wrap.ts +++ b/src/client/shared/wrap.ts @@ -3,13 +3,13 @@ import { SCRAMJETCLIENT } from "../../symbols"; import { ScramjetClient } from "../client"; import { config } from "../../shared"; // import { argdbg } from "./err"; -// import { indirectEval } from "./eval"; +import { indirectEval } from "./eval"; export function createWrapFn(client: ScramjetClient, self: typeof globalThis) { return function (identifier: any) { - if (identifier === self.location) { - return client.locationProxy; - } + if (identifier === self) return client.globalProxy; + if (identifier === self.location) return client.locationProxy; + if (identifier === eval) return indirectEval; if (iswindow) { if (identifier === self.parent) {