commit | 68ceff4d0ef5c5de9144d09d7a05712c439951c1 | [log] [tgz] |
---|---|---|
author | Jesse MacFadyen <purplecabbage@gmail.com> | Fri Sep 09 16:27:49 2016 -0700 |
committer | Jesse MacFadyen <purplecabbage@gmail.com> | Fri Sep 09 16:30:51 2016 -0700 |
tree | 19a258224a8e2e4d666ad1c0a9cf70f6d358487f | |
parent | 5ebefa82d5220b4525602b3c38e9198095f80d8c [diff] |
Fix dumb linting error
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 @@ var defaultButton = dlg.querySelector(".dlgButtonFirst"); dlg.addEventListener("keypress",function(e) { if (e.keyCode === 13) { // enter key - defaultButton && defaultButton.click(); + if(defaultButton) { + defaultButton.click(); + } } });