Merge branch '885-fix-preloading-html' into 'develop'

After Store: Correctly handle preloaded HTML

Closes #885

See merge request pleroma/pleroma-fe!1170
This commit is contained in:
Shpuld Shpludson 2020-07-07 11:59:36 +00:00
commit bbb977a044
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ const preloadFetch = async (request) => {
if (!data || !data[request]) {
return window.fetch(request)
}
const requestData = atob(data[request])
const requestData = JSON.parse(atob(data[request]))
return {
ok: true,
json: () => JSON.parse(requestData),
json: () => requestData,
text: () => requestData
}
}