mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
adding a check on the variable (#27021)
GitOrigin-RevId: 9ecc517ff9bee1dac14e579d494294c0efeb6b69
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const toggleButton = document.getElementById('navbar-toggle-btn') as HTMLElement
|
||||
|
||||
toggleButton.addEventListener('click', () => {
|
||||
toggleButton?.addEventListener('click', () => {
|
||||
// Delay allows Bootstrap to update aria-expanded first
|
||||
setTimeout(() => {
|
||||
const isExpanded = toggleButton.getAttribute('aria-expanded') === 'true'
|
||||
|
||||
Reference in New Issue
Block a user