mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 23:10: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 @@
|
|||
// @ts-nocheck
|
||||
import { ScramjetClient } from "./client";
|
||||
import { nativeGetOwnPropertyDescriptor } from "./natives";
|
||||
import { encodeUrl, decodeUrl } from "./shared";
|
||||
import { encodeUrl, decodeUrl } from "../shared";
|
||||
|
||||
export function createLocationProxy(
|
||||
client: ScramjetClient,
|
||||
|
@ -39,7 +39,7 @@ export function createLocationProxy(
|
|||
apply(target, thisArg, args) {
|
||||
let url = new URL(client.url.href);
|
||||
url[prop] = args[0];
|
||||
self.location.href = encodeUrl(url.href);
|
||||
client.url = url;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue