chore: cleanup

This commit is contained in:
Percs 2024-10-23 10:45:23 -05:00
parent b98d57a5bf
commit 2261d12064
2 changed files with 2 additions and 1 deletions

View file

@ -13,7 +13,7 @@ import {
unrewriteUrl,
rewriteUrl,
} from "../shared";
import { BareClient as BareClientType } from "@mercuryworkshop/bare-mux";
import type { BareClient as BareClientType } from "@mercuryworkshop/bare-mux";
import { createWrapFn } from "./shared/wrap";
import { NavigateEvent } from "./events";
import type { URLMeta } from "../shared/rewriters/url";

View file

@ -58,6 +58,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
Object.defineProperty(self, config.globals.wrapthisfn, {
value: function (i) {
if (i === self) return client.globalProxy;
return i;
},
writable: false,