Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
parro-it committed Jun 23, 2017
1 parent 342f46f commit 644df26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ function register(win, accelerator, callback) {

if ((registeringAppShortcut && appHasFocus) ||
(registeringWindowHasFocus && !registeringWindowIsMinimized())) {
win.on('show', _register('the window was focused at shortcut registration.'));
_register();
_register('the window was focused at shortcut registration.');
}
}

Expand Down

0 comments on commit 644df26

Please sign in to comment.