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:
parent
13df748f02
commit
ef03c4b7bb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
})
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue