Skip to content
Snippets Groups Projects
Commit 46cf50a4 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

rename variable requestJson when it's not actually json

parent a8cb5e71
Branches
No related tags found
No related merge requests found
......@@ -25,11 +25,11 @@ const preloadFetch = async (request) => {
if (!data || !data[request]) {
return window.fetch(request)
}
const requestJson = atob(data[request])
const requestData = atob(data[request])
return {
ok: true,
json: () => JSON.parse(requestJson),
text: () => requestJson
json: () => JSON.parse(requestData),
text: () => requestData
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment