-
-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace inline onclick with addEventListener inside .js file to be co…
…mpatible with CSP Signed-off-by: Orazio <22700499+orazioedoardo@users.noreply.github.com>
- Loading branch information
1 parent
4df2d1d
commit 56c3878
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
document.addEventListener("DOMContentLoaded", () => { | ||
logout_button = document.getElementById("logout-button"); | ||
Check failure on line 2 in scripts/pi-hole/js/logout.js GitHub Actions / Node
Check failure on line 2 in scripts/pi-hole/js/logout.js GitHub Actions / Node
|
||
logout_button.addEventListener("click", () => { | ||
Check failure on line 3 in scripts/pi-hole/js/logout.js GitHub Actions / Node
|
||
utils.doLogout(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters