From 3408c8038ebeaf7fa88b098d0b1c05a21835f4d2 Mon Sep 17 00:00:00 2001 From: Michael Vasseur Date: Thu, 29 Sep 2016 14:41:35 +0200 Subject: [PATCH] Fix indentation --- lib/browser/guest-window-manager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/browser/guest-window-manager.js b/lib/browser/guest-window-manager.js index 132b5503f3..88871dc58b 100644 --- a/lib/browser/guest-window-manager.js +++ b/lib/browser/guest-window-manager.js @@ -141,13 +141,13 @@ const getGuestWindow = function (guestId) { ipcMain.on('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', function (event, url, frameName, disposition, options, additionalFeatures) { options = mergeBrowserWindowOptions(event.sender, options) event.sender.emit('new-window', event, url, frameName, disposition, options, additionalFeatures) - var newGuest = event.newGuest + const newGuest = event.newGuest if ((event.sender.isGuest() && !event.sender.allowPopups) || event.defaultPrevented) { - if (newGuest != undefined && newGuest != null) { + if (newGuest != undefined && newGuest != null) { event.returnValue = setupGuest(event.sender, frameName, newGuest) - } else { + } else { event.returnValue = null - } + } } else { event.returnValue = createGuest(event.sender, url, frameName, options) }