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`); }