Fix dumb linting error
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/68ceff4d Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/68ceff4d Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/68ceff4d Branch: refs/heads/1.3.x Commit: 68ceff4d0ef5c5de9144d09d7a05712c439951c1 Parents: 5ebefa8 Author: Jesse MacFadyen <[email protected]> Authored: Fri Sep 9 16:27:49 2016 -0700 Committer: Jesse MacFadyen <[email protected]> Committed: Fri Sep 9 16:30:51 2016 -0700 ---------------------------------------------------------------------- src/windows/NotificationProxy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/68ceff4d/src/windows/NotificationProxy.js ---------------------------------------------------------------------- diff --git a/src/windows/NotificationProxy.js b/src/windows/NotificationProxy.js index e826557..c5bc272 100644 --- a/src/windows/NotificationProxy.js +++ b/src/windows/NotificationProxy.js @@ -120,7 +120,9 @@ function createPromptDialog(title, message, buttons, defaultText, callback) { var defaultButton = dlg.querySelector(".dlgButtonFirst"); dlg.addEventListener("keypress",function(e) { if (e.keyCode === 13) { // enter key - defaultButton && defaultButton.click(); + if(defaultButton) { + defaultButton.click(); + } } }); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
