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

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

* add missing include
This commit is contained in:
Jeremy Rose
2020-12-16 17:07:44 -08:00
committed by GitHub
parent d58bfdcdfd
commit fea41c6f6d
2 changed files with 23 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