From d4c7e6fac903442d27ac28138e81359e98458b7d Mon Sep 17 00:00:00 2001 From: RTXUX Date: Tue, 20 Sep 2022 07:40:02 +0000 Subject: [PATCH] fix menus.js null dereference --- frontend/static/menus.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/static/menus.js b/frontend/static/menus.js index df86852..afc16d0 100644 --- a/frontend/static/menus.js +++ b/frontend/static/menus.js @@ -59,6 +59,7 @@ this._firstMenuLink = this._menu.querySelector(MENU_LINK_SELECTOR); // Set ARIA attributes + if (!this._link) return; this._link.setAttribute('aria-haspopup', 'true'); this._menu.setAttribute(ARIA_ROLE, 'menu'); this._menu.setAttribute('aria-labelledby', this._link.getAttribute('id'));