docs: fix app.on('session-created' example (#19713)

It does not have the 'event' argument.

Refs: https://github.com/electron/electron/pull/12123
Refs: https://github.com/electron/electron/pull/15236
Refs: https://github.com/electron/electron/issues/15203
This commit is contained in:
Сковорода Никита Андреевич 2019-08-13 00:46:42 +03:00 committed by Robo
parent 13df748f02
commit ef03c4b7bb

View file

@ -390,7 +390,7 @@ Emitted when Electron has created a new `session`.
```javascript
const { app } = require('electron')
app.on('session-created', (event, session) => {
app.on('session-created', (session) => {
console.log(session)
})
```