mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
oops
This commit is contained in:
parent
671057113f
commit
bac00de12b
2 changed files with 1 additions and 3 deletions
|
@ -177,7 +177,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
|
|
||||||
client.Trap("Node.prototype.ownerDocument", {
|
client.Trap("Node.prototype.ownerDocument", {
|
||||||
get(ctx) {
|
get(ctx) {
|
||||||
return self[config.rewritefn](ctx.get());
|
return client.documentProxy;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,8 +88,6 @@ export async function swfetch(
|
||||||
if (new URL(request.referrer).pathname != "/")
|
if (new URL(request.referrer).pathname != "/")
|
||||||
headers.set("Origin", new URL(request.referrer).origin);
|
headers.set("Origin", new URL(request.referrer).origin);
|
||||||
|
|
||||||
headers.set("User-Agent", "https://accounts.google.com");
|
|
||||||
|
|
||||||
dbg.log(url.toString(), headers.headers);
|
dbg.log(url.toString(), headers.headers);
|
||||||
|
|
||||||
const response: BareResponseFetch = await this.client.fetch(url, {
|
const response: BareResponseFetch = await this.client.fetch(url, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue