forked from AkkomaGang/akkoma-fe
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:
commit
bbb977a044
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue