mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
that's not how baseuri works but ok
This commit is contained in:
parent
9985e8aea2
commit
251c182a4c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue