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

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