mirror of
https://git.youjo.love/youjo/youjo-fe.git
synced 2024-11-20 13:59:55 +01:00
rename variable requestJson when it's not actually json
This commit is contained in:
parent
a8cb5e71d9
commit
46cf50a4d6
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue