This commit is contained in:
velzie 2024-08-10 15:20:46 -04:00
parent 671057113f
commit bac00de12b
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
2 changed files with 1 additions and 3 deletions

View file

@ -177,7 +177,7 @@ export default function (client: ScramjetClient, self: typeof window) {
client.Trap("Node.prototype.ownerDocument", {
get(ctx) {
return self[config.rewritefn](ctx.get());
return client.documentProxy;
},
});
}

View file

@ -88,8 +88,6 @@ export async function swfetch(
if (new URL(request.referrer).pathname != "/")
headers.set("Origin", new URL(request.referrer).origin);
headers.set("User-Agent", "https://accounts.google.com");
dbg.log(url.toString(), headers.headers);
const response: BareResponseFetch = await this.client.fetch(url, {