fix error handling bug

This commit is contained in:
hippoz 2020-10-13 22:20:05 +03:00
parent 53952adcc4
commit 6f5561f30a

View file

@ -73,7 +73,7 @@
})
});
if (res.status !== 200) {
if (res.status !== 204) {
alert(`Request failed with status code ${res.status} and content "${await res.text()}" (POST ${webhook.url})`);
return;
}