that's not how baseuri works but ok

This commit is contained in:
velzie 2024-09-19 18:21:43 -04:00
parent 9985e8aea2
commit 251c182a4c
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F

View file

@ -120,10 +120,10 @@ export default function (client: ScramjetClient, self: typeof window) {
// TODO this should be using ownerdocument but who gaf // TODO this should be using ownerdocument but who gaf
const base = self.document.querySelector("base"); const base = self.document.querySelector("base");
if (base) { if (base) {
return new URL(base.href, client.url).href; return new URL(base.href, client.url.origin).href;
} }
return client.url.href; return client.url.origin;
}, },
set() { set() {
return false; return false;