зеркало из https://github.com/electron/electron.git
docs: Fix the syntax error for code fragment (#37939)
By using `app.on('ready').then(xxx)`, application will throw a TypeError
This commit is contained in:
Родитель
6f2ab392ab
Коммит
f03315ad4d
|
@ -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()
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче