diff --git a/themes/default/js/greeter.js b/themes/default/js/greeter.js index 5aeab3c..2a3aac8 100644 --- a/themes/default/js/greeter.js +++ b/themes/default/js/greeter.js @@ -678,7 +678,7 @@ class Theme { this.selected_user = null; this.auth_pending = false; - if ( $( event.target ).hasClass( 'alert' ) ) { + if ( event && $( event.target ).hasClass( 'alert' ) ) { /* We were triggered by the authentication failed message being dismissed. * Keep the same account selected so user can retry without re-selecting an account. */