diff --git a/resources/skins.citizen.preferences/skins.citizen.preferences.js b/resources/skins.citizen.preferences/skins.citizen.preferences.js index 764df1ef..7450b8b4 100644 --- a/resources/skins.citizen.preferences/skins.citizen.preferences.js +++ b/resources/skins.citizen.preferences/skins.citizen.preferences.js @@ -159,7 +159,7 @@ function dismissOnClickOutside( event ) { const panel = document.getElementById( 'citizen-pref-panel' ); if ( panel.classList.contains( 'citizen-pref-panel--active' ) ) { - // eslint-disable-next-line no-use-before-define + togglePanel(); } } @@ -174,7 +174,7 @@ function dismissOnEscape( event ) { if ( event.key !== 'Escape' ) { return; } - // eslint-disable-next-line no-use-before-define + togglePanel(); }