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:
Jake 2018-03-08 11:32:52 +09:00 committed by Charles Kerr
parent 8c138e74be
commit 569b87ff83

View file

@ -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: