Append pathname to bootloader request

This commit is contained in:
Ken-Håvard Lieng 2018-11-07 02:07:23 +01:00
parent ed40b956b7
commit fd6c8a70e2
7 changed files with 49 additions and 46 deletions

View file

@ -3,7 +3,7 @@
// This entrypoint gets inlined in the index page cached by service workers
// and is responsible for fetching the data we would otherwise embed
window.__env__ = fetch('/data', {
window.__env__ = fetch(`/data${window.location.pathname}`, {
credentials: 'same-origin'
}).then(res => {
if (res.ok) {