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