Use document.baseURI instead of looking up the base tag.

This commit is contained in:
Dillon Kearns 2020-03-28 14:05:19 -07:00
parent 6649ce7c06
commit 964f9af8ad

View File

@ -39,7 +39,7 @@ function loadContentAndInitializeApp(/** @type { init: any } */ mainElmModule)
secrets: null,
baseUrl: isPrerendering
? window.location.origin
: document.querySelector("base").href,
: document.baseURI,
isPrerendering: isPrerendering,
contentJson
}