From 7a314908d1ad5982239964eff698370e64fbc4ae Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Oct 2020 16:00:00 +0300 Subject: [PATCH] fix delete current webhook --- discordwebhookmanager/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordwebhookmanager/index.html b/discordwebhookmanager/index.html index 332d318..862f8da 100644 --- a/discordwebhookmanager/index.html +++ b/discordwebhookmanager/index.html @@ -96,8 +96,8 @@ deleteCurrentWebhook: function() { const yn = confirm(`Delete webhook ${this.selectedWebhookObject.name}?`); if (yn) { - this.selectedWebhook = -1; this.deleteWebhookByIndex(this.selectedWebhook); + this.selectedWebhook = -1; this.saveToLocalstorage(); alert(`Webhook successfully deleted`); }