mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
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:
committed by
Robo
parent
13df748f02
commit
ef03c4b7bb
@@ -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)
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user