Skip to content

Commit

Permalink
Small Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Skowronski committed Feb 11, 2017
1 parent a788cb1 commit 2dc4aa8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ mb.app.on('ready', () => {
})

mb.on('after-show', () => {
electron.globalShortcut.register('Esc', () => {
console.log('CommandOrControl+X is pressed')
mb.hideWindow()
})
electron.globalShortcut.register('Esc', mb.hideWindow)
})


Expand Down

0 comments on commit 2dc4aa8

Please sign in to comment.