fix error handling bug
This commit is contained in:
parent
53952adcc4
commit
6f5561f30a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue