mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 07:20:02 -04:00
misc refactors
This commit is contained in:
parent
819c1701d0
commit
0939dd2b57
25 changed files with 82 additions and 66 deletions
|
@ -1,7 +1,7 @@
|
|||
import { encodeUrl } from "./shared";
|
||||
import { encodeUrl } from "../shared";
|
||||
import { ScramjetClient } from "./client";
|
||||
import { indirectEval } from "./shared/eval";
|
||||
import { config } from "./shared";
|
||||
import { config } from "../shared";
|
||||
import { getOwnPropertyDescriptorHandler } from "./helpers";
|
||||
|
||||
export function createGlobalProxy(
|
||||
|
@ -18,7 +18,7 @@ export function createGlobalProxy(
|
|||
prop
|
||||
)
|
||||
)
|
||||
return self[config.wrapfn](self[prop]);
|
||||
return client.wrapfn(self[prop]);
|
||||
|
||||
if (prop === "$scramjet") return;
|
||||
|
||||
|
@ -31,7 +31,7 @@ export function createGlobalProxy(
|
|||
|
||||
set(target, prop, value) {
|
||||
if (prop === "location") {
|
||||
location.href = encodeUrl(value);
|
||||
client.url = value;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue