By using `app.on('ready').then(xxx)`, application will throw a TypeError Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Zenkie Bear <[email protected]>
@@ -274,7 +274,7 @@ calling `createWindow()` once its promise is fulfilled.
You typically listen to Node.js events by using an emitter's `.on` function.
```diff
-+ app.on('ready').then(() => {
++ app.on('ready', () => {
- app.whenReady().then(() => {
createWindow()
})