mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
chore: cleanup
This commit is contained in:
parent
b98d57a5bf
commit
2261d12064
2 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@ import {
|
||||||
unrewriteUrl,
|
unrewriteUrl,
|
||||||
rewriteUrl,
|
rewriteUrl,
|
||||||
} from "../shared";
|
} 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 { createWrapFn } from "./shared/wrap";
|
||||||
import { NavigateEvent } from "./events";
|
import { NavigateEvent } from "./events";
|
||||||
import type { URLMeta } from "../shared/rewriters/url";
|
import type { URLMeta } from "../shared/rewriters/url";
|
||||||
|
|
|
@ -58,6 +58,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
|
||||||
Object.defineProperty(self, config.globals.wrapthisfn, {
|
Object.defineProperty(self, config.globals.wrapthisfn, {
|
||||||
value: function (i) {
|
value: function (i) {
|
||||||
if (i === self) return client.globalProxy;
|
if (i === self) return client.globalProxy;
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
},
|
},
|
||||||
writable: false,
|
writable: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue