mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
logout.js: add missing preventDefault call
Without it the target `#` is followed which is not wanted Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const logoutButton = document.getElementById("logout-button");
|
||||
logoutButton.addEventListener("click", () => {
|
||||
logoutButton.addEventListener("click", event => {
|
||||
event.preventDefault();
|
||||
utils.doLogout();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user