fix(xo-web/initial fetch): support path prefix

Related to #2775
This commit is contained in:
Julien Fontanet 2018-04-13 17:00:54 +02:00
parent 83b8b5de61
commit 52503de645

View File

@ -132,7 +132,7 @@ export const connectStore = store => {
store.dispatch(signedIn(xo.user)) store.dispatch(signedIn(xo.user))
_call('xo.getAllObjects', { ndjson: true }) _call('xo.getAllObjects', { ndjson: true })
.then(({ $getFrom }) => fetch($getFrom)) .then(({ $getFrom }) => fetch('.' + $getFrom))
.then(response => response.text()) .then(response => response.text())
.then(data => { .then(data => {
const objects = Object.create(null) const objects = Object.create(null)