From deb7ccbef384cd41d58a37f633b051354ca772e0 Mon Sep 17 00:00:00 2001 From: Vanessa Yuen Date: Fri, 25 Aug 2017 17:24:50 -0400 Subject: [PATCH] fix lint error --- docs/api/browser-window.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index a62fdd0f48fb..53ed57f0c389 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -410,7 +410,7 @@ window.onbeforeunload = (e) => { // a non-void value will silently cancel the close. // It is recommended to use the dialog API to let the user confirm closing the // application. -  e.returnValue = false // equivalent to `return false` but not recommended + e.returnValue = false // equivalent to `return false` but not recommended } ``` _**Note**: There is a subtle difference between the behaviors of `window.onbeforeunload = handler` and `window.addEventListener('beforeunload', handler)`. It is recommended to always set the `event.returnValue` explicitly, instead of just returning a value, as the former works more consistently within Electron._