mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 18:58:28 +00:00
Logout: fix redirect
Without this, we were getting into a loop with keep alive enabled when using Firefox. Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -9,8 +9,10 @@
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const logoutButton = document.getElementById("logout-button");
|
||||
const logoutUrl = document.body.dataset.logoutUrl;
|
||||
|
||||
logoutButton.addEventListener("click", event => {
|
||||
event.preventDefault();
|
||||
utils.doLogout();
|
||||
utils.doLogout(logoutUrl);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user