3 ms·
> You're supposed to address this by adding the base URL on the end, but then correctly obtaining that can be brittle. Isn't that what document.baseURI is for?
by jfhr 2y ago
> You're supposed to address this by adding the base URL on the end, but then correctly obtaining that can be brittle.
Isn't that what document.baseURI is for? At least that's my understanding:
new URL("/whatever", document.baseURI)