mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Fix console warning when no password set (#3410)
This commit is contained in:
@@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
const logoutButton = document.getElementById("logout-button");
|
||||
const logoutUrl = document.body.dataset.webhome + "login";
|
||||
|
||||
logoutButton.addEventListener("click", event => {
|
||||
logoutButton?.addEventListener("click", event => {
|
||||
event.preventDefault();
|
||||
utils.doLogout(logoutUrl);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user