From ee4562faca871d9daa0cd12df73f7b13c15cb9ac Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 1 Jul 2024 05:31:48 +0200 Subject: [PATCH] Always reload page after logout attempt Signed-off-by: DL6ER --- scripts/pi-hole/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/js/utils.js b/scripts/pi-hole/js/utils.js index caca985b8..1a5ce70e3 100644 --- a/scripts/pi-hole/js/utils.js +++ b/scripts/pi-hole/js/utils.js @@ -467,8 +467,8 @@ function doLogout() { $.ajax({ url: "/api/auth", method: "DELETE", - }).always(function (data) { - if (data.status === 410) location.reload(); + }).success(function () { + location.reload(); }); }