mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +03:00
Fix typo
This commit is contained in:
parent
009184aaee
commit
b93958a8aa
|
@ -79,13 +79,14 @@ export default function getApp(theState) {
|
|||
headers: new Headers(headers),
|
||||
};
|
||||
|
||||
const ghUrl = `https://api.github.com/repos/anticensorship-russia/for-testing-github-api/issues/1/comments${query}`;
|
||||
//const ghUrl = `https://api.github.com/repos/anticensorship-russia/for-testing-github-api/issues/1/comments${query}`;
|
||||
const ghUrl = `http://httpstat.us/418`;
|
||||
const [comments, etag] = await fetch(
|
||||
ghUrl,
|
||||
params
|
||||
).then(
|
||||
(res) => !( res.status >= 200 && res.status < 300 || res.status === 304 )
|
||||
? Promise.reject(new Error(`Полечен ответ с неудачным кодом ${res.status}.`))
|
||||
? Promise.reject(new Error(`Получен ответ с неудачным кодом ${res.status}.`))
|
||||
: res
|
||||
).then(
|
||||
(res) => Promise.all([
|
||||
|
|
Loading…
Reference in New Issue
Block a user