fix(core): update

This commit is contained in:
2018-12-03 18:35:30 +01:00
parent 0d4e8631dc
commit 49772002f9
4 changed files with 2000 additions and 4 deletions

View File

@ -70,7 +70,7 @@ export class WebRequest {
'Content-Type': 'application/json'
}
});
if (response.status >= 200 && response.status < 200) {
if (response.status >= 200 && response.status < 300) {
return JSON.parse(await response.text());
} else if (response.status === 429) {
await doHistoryCheck('429');