Apply suggestion to src/boot/after_store.js
This commit is contained in:
parent
1f97f36e1c
commit
7c9ba8995c
|
@ -25,11 +25,11 @@ const preloadFetch = async (request) => {
|
||||||
if (!data || !data[request]) {
|
if (!data || !data[request]) {
|
||||||
return window.fetch(request)
|
return window.fetch(request)
|
||||||
}
|
}
|
||||||
const requestData = atob(data[request])
|
const requestData = JSON.parse(atob(data[request]))
|
||||||
return {
|
return {
|
||||||
ok: true,
|
ok: true,
|
||||||
json: () => JSON.parse(requestData),
|
json: () => requestData,
|
||||||
text: () => JSON.parse(requestData)
|
text: () => requestData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue