mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40: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,
|
||||
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";
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue