chore: prettier

This commit is contained in:
Percs 2024-10-13 00:51:57 -05:00
parent 70779ffe5b
commit a94f969a7b
6 changed files with 13 additions and 15 deletions

View file

@ -22,14 +22,13 @@ export function createGlobalProxy(
return new Proxy(self, {
get(target, prop) {
if (prop === "location") return client.locationProxy;
if (typeof prop === "string" && UNSAFE_GLOBALS.includes(prop)) return client.wrapfn(self[prop]);
if (typeof prop === "string" && UNSAFE_GLOBALS.includes(prop))
return client.wrapfn(self[prop]);
if (prop === "$scramjet") return;
if (prop === "eval") return indirectEval.bind(client);
const value = Reflect.get(target, prop);
if (typeof prop === "string" && UNSAFE_GLOBALS.includes(prop))
return client.wrapfn(value);
return value;
},