From ab98dcd7cf30f80135f997a131c0562dbb656f08 Mon Sep 17 00:00:00 2001 From: Thomas Tuts Date: Tue, 9 Jun 2015 16:56:45 +0200 Subject: [PATCH] Try to clarify docs for window.onbeforeunload() --- docs/api/browser-window.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 6358e15e..4211ac80 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -131,9 +131,9 @@ window.onbeforeunload = function(e) { console.log('I do not want to be closed'); // Unlike usual browsers, in which a string should be returned and the user is - // prompted to confirm the page unload. Electron gives the power completely - // to the developers, return empty string or false would prevent the unloading - // now. You can also use the dialog API to let user confirm it. + // prompted to confirm the page unload, Electron gives developers more options. + // Returning empty string or false would prevent the unloading now. + // You can also use the dialog API to let the user confirm closing the application. return false; }; ``` -- 2.43.0