Skip to content

Commit

Permalink
Always reload page after logout attempt
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Jul 1, 2024
1 parent 330845b commit ee4562f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pi-hole/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down

0 comments on commit ee4562f

Please sign in to comment.