Apply suggestion to src/boot/after_store.js

This commit is contained in:
lain 2020-07-07 11:47:01 +00:00
parent 1f97f36e1c
commit 7c9ba8995c
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
}