Merge pull request #9254 from electron/endsession-event

End session event on browser window
This commit is contained in:
Kevin Sawicki 2017-04-24 12:02:05 -07:00 committed by GitHub
commit 7881376aff
7 changed files with 24 additions and 0 deletions

View file

@ -376,6 +376,11 @@ window.onbeforeunload = (e) => {
Emitted when the window is closed. After you have received this event you should
remove the reference to the window and avoid using it any more.
#### Event: 'session-end' _Windows_
Emitted when window session is going to end due to force shutdown or machine restart
or session log off.
#### Event: 'unresponsive'
Emitted when the web page becomes unresponsive.