Fix JavaScript error on the login page
This commit is contained in:
parent
5948786b15
commit
ca919c2ff8
1 changed files with 4 additions and 2 deletions
6
internal/ui/static/js/bootstrap.js
vendored
6
internal/ui/static/js/bootstrap.js
vendored
|
@ -117,8 +117,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
fixVoiceOverDetailsSummaryBug();
|
||||
|
||||
const logoElement = document.querySelector(".logo");
|
||||
logoElement.addEventListener("click", toggleMainMenu);
|
||||
logoElement.addEventListener("keydown", toggleMainMenu);
|
||||
if (logoElement) {
|
||||
logoElement.addEventListener("click", toggleMainMenu);
|
||||
logoElement.addEventListener("keydown", toggleMainMenu);
|
||||
}
|
||||
|
||||
onClick(".header nav li", (event) => onClickMainMenuListItem(event));
|
||||
|
||||
|
|
Loading…
Reference in a new issue