From fa837b5762aa4464a1eab2fa212ab88bed50a814 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 1 Jul 2024 20:44:29 +0200 Subject: [PATCH] Use AJAX.always() during logout Signed-off-by: DL6ER --- scripts/pi-hole/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/utils.js b/scripts/pi-hole/js/utils.js index 1a5ce70e3..ead46577d 100644 --- a/scripts/pi-hole/js/utils.js +++ b/scripts/pi-hole/js/utils.js @@ -467,7 +467,7 @@ function doLogout() { $.ajax({ url: "/api/auth", method: "DELETE", - }).success(function () { + }).always(function () { location.reload(); }); }