From 076427673e5b2126668defe51a0a68824cc043ac Mon Sep 17 00:00:00 2001 From: Ryohei Ikegami Date: Sun, 19 Mar 2017 18:20:10 +0900 Subject: [PATCH] Fix JavaScript style --- lib/browser/guest-window-manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/browser/guest-window-manager.js b/lib/browser/guest-window-manager.js index f6e43c33b8ca..c75e33882395 100644 --- a/lib/browser/guest-window-manager.js +++ b/lib/browser/guest-window-manager.js @@ -243,7 +243,9 @@ ipcMain.on('ELECTRON_GUEST_WINDOW_MANAGER_INTERNAL_WINDOW_OPEN', function (event additionalFeatures, postData) { options = mergeBrowserWindowOptions(event.sender, options) const newWindowEvent = { - preventDefault: () => newWindowEvent.defaultPrevented = true + preventDefault: function () { + this.defaultPrevented = true + } } event.sender.emit('new-window', newWindowEvent, url, frameName, disposition, options, additionalFeatures) const newGuest = newWindowEvent.newGuest