Added session-created event documentation (#12123)
* Added session-created event documentation
Emitted at 1c0ea0286e/lib/browser/api/session.js (L21)
* Removed trailing spaces
This commit is contained in:
parent
8c138e74be
commit
569b87ff83
1 changed files with 17 additions and 0 deletions
|
@ -356,6 +356,23 @@ assistive technologies, such as screen readers, are enabled or disabled.
|
|||
See https://www.chromium.org/developers/design-documents/accessibility for more
|
||||
details.
|
||||
|
||||
### Event: 'session-created'
|
||||
|
||||
Returns:
|
||||
|
||||
* `event` Event
|
||||
* `session` [Session](session.md)
|
||||
|
||||
Emitted when Electron has created a new `session`.
|
||||
|
||||
```javascript
|
||||
const {app} = require('electron')
|
||||
|
||||
app.on('session-created', (event, session) => {
|
||||
console.log(session)
|
||||
})
|
||||
```
|
||||
|
||||
## Methods
|
||||
|
||||
The `app` object has the following methods:
|
||||
|
|
Loading…
Reference in a new issue