change endsession event name to session-end
This commit is contained in:
parent
9e8252c1f9
commit
9e70372c1f
2 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ void Window::OnWindowClosed() {
|
||||||
|
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
void Window::OnWindowEndSession() {
|
void Window::OnWindowEndSession() {
|
||||||
Emit("endsession");
|
Emit("session-end");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -376,7 +376,7 @@ window.onbeforeunload = (e) => {
|
||||||
Emitted when the window is closed. After you have received this event you should
|
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.
|
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
|
Emitted when window session is going to end due to force shutdown or machine restart
|
||||||
or session log off.
|
or session log off.
|
||||||
|
|
Loading…
Reference in a new issue