change endsession event name to session-end

This commit is contained in:
Hari Krishna Reddy Juturu 2017-04-24 10:16:11 -07:00
parent 9e8252c1f9
commit 9e70372c1f
2 changed files with 2 additions and 2 deletions

View file

@ -193,7 +193,7 @@ void Window::OnWindowClosed() {
#if defined(OS_WIN)
void Window::OnWindowEndSession() {
Emit("endsession");
Emit("session-end");
}
#endif

View file

@ -376,7 +376,7 @@ 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: 'endsession' _Windows_
#### Event: 'session-end' _Windows_
Emitted when window session is going to end due to force shutdown or machine restart
or session log off.