it's not that deep you can stop yelling at me now

This commit is contained in:
velzie 2024-10-21 22:20:53 -04:00
parent 8b17059cc9
commit 3ece6a555e
No known key found for this signature in database
GPG key ID: AA51AEFB0A1F3820

View file

@ -3,13 +3,13 @@ import { SCRAMJETCLIENT } from "../../symbols";
import { ScramjetClient } from "../client"; import { ScramjetClient } from "../client";
import { config } from "../../shared"; import { config } from "../../shared";
// import { argdbg } from "./err"; // import { argdbg } from "./err";
// import { indirectEval } from "./eval"; import { indirectEval } from "./eval";
export function createWrapFn(client: ScramjetClient, self: typeof globalThis) { export function createWrapFn(client: ScramjetClient, self: typeof globalThis) {
return function (identifier: any) { return function (identifier: any) {
if (identifier === self.location) { if (identifier === self) return client.globalProxy;
return client.locationProxy; if (identifier === self.location) return client.locationProxy;
} if (identifier === eval) return indirectEval;
if (iswindow) { if (iswindow) {
if (identifier === self.parent) { if (identifier === self.parent) {