WIP Исправлена ошибка запросов, сделано удаление

This commit is contained in:
Daria Golova
2022-11-15 19:44:10 +03:00
parent c54014ad5f
commit eb753da21a
10 changed files with 180 additions and 37 deletions

View File

@@ -12,7 +12,8 @@ function handleRequest(method, url, headers, attempts, body) {
})();
})
.then((res) => {
return res.json();
if (res._bodyText) return res.json();
return res.ok;
})
.catch((err) => {
console.log(err);