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
No related branches found
No related tags found
2 merge requests!12172.1.0 into master,!1155Add basic preloading for nodeinfo/config
Pipeline #27768 passed
This commit is part of merge request !1155. Comments created here will be created in the context of that merge request.
......@@ -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.
Finish editing this message first!
Please register or to comment