From b85e1188e14fc4d5e757f1ce8775b85e28bfa848 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 8 Aug 2018 11:07:47 +0200 Subject: [PATCH] Fix `this` context for enter-key handler on app tokens Fixes https://sentry.io/share/issue/e07c5560b6154212832e4cd6598464c7/. Signed-off-by: Christoph Wurst --- settings/js/authtoken_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index d20356b259..7f788935ac 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -245,7 +245,7 @@ if (event.which === 13) { this._addAppPassword(); } - }); + }.bind(this)); this._result = $('#app-password-result'); this._newAppLoginName = $('#new-app-login-name');