fix: throw when using globalShortcut before ready (#27021)

* fix: throw when using globalShortcut before ready

* fix

Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
This commit is contained in:
trop[bot]
2020-12-17 10:07:10 +09:00
committed by GitHub
parent 6b91371b6e
commit 25df0f5d31
2 changed files with 22 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ with the operating system so that you can customize the operations for various
shortcuts.
**Note:** The shortcut is global; it will work even if the app does
not have the keyboard focus. You should not use this module until the `ready`
not have the keyboard focus. This module cannot be used before the `ready`
event of the app module is emitted.
```javascript