From 6f5561f30a09ad56a53e59284e58131f3f0f7895 Mon Sep 17 00:00:00 2001 From: hippoz Date: Tue, 13 Oct 2020 22:20:05 +0300 Subject: [PATCH] fix error handling bug --- discordwebhookmanager/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordwebhookmanager/index.html b/discordwebhookmanager/index.html index d6eef42..16e8d1a 100644 --- a/discordwebhookmanager/index.html +++ b/discordwebhookmanager/index.html @@ -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; }