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

This commit is contained in:
Jeremy Rose 2020-12-15 11:13:56 -08:00 committed by GitHub
parent ef49fea5eb
commit 833baa4c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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