From 2da23ec9a6399db5014e8799ab049019dd150661 Mon Sep 17 00:00:00 2001 From: AitBits Date: Sun, 16 Jul 2017 18:01:22 +0900 Subject: [PATCH] Fix crash when ESC is pressed on authentication. --- themes/default/js/greeter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/js/greeter.js b/themes/default/js/greeter.js index 5aeab3c..778e573 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 != null && $( 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. */