mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Move all files from /scripts/pi-hole/ to /scripts/
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
15
scripts/js/logout.js
Normal file
15
scripts/js/logout.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/* Pi-hole: A black hole for Internet advertisements
|
||||
* (c) 2023 Pi-hole, LLC (https://pi-hole.net)
|
||||
* Network-wide ad blocking via your own hardware.
|
||||
*
|
||||
* This file is copyright under the latest version of the EUPL.
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
/* global utils:false */
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const logoutButton = document.getElementById("logout-button");
|
||||
logoutButton.addEventListener("click", () => {
|
||||
utils.doLogout();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user