forked from AkkomaGang/akkoma-fe
Apply suggestion to src/boot/after_store.js
This commit is contained in:
parent
1f97f36e1c
commit
7c9ba8995c
1 changed files with 3 additions and 3 deletions
|
@ -25,11 +25,11 @@ 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),
|
||||
text: () => JSON.parse(requestData)
|
||||
json: () => requestData,
|
||||
text: () => requestData
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue