Browse Source

change endsession event name to session-end

Hari Krishna Reddy Juturu 8 years ago
parent
commit
9e70372c1f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      atom/browser/api/atom_api_window.cc
  2. 1 1
      docs/api/browser-window.md

+ 1 - 1
atom/browser/api/atom_api_window.cc

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

+ 1 - 1
docs/api/browser-window.md

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