From 3dd41bc09a291dbc6c2ffbd344d6e0be199dd5e6 Mon Sep 17 00:00:00 2001 From: Michael Vasseur Date: Wed, 5 Oct 2016 11:46:55 +0200 Subject: [PATCH] Fix errors --- lib/browser/guest-window-manager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/browser/guest-window-manager.js b/lib/browser/guest-window-manager.js index f16118ec0a1e..3ff307ea7c24 100644 --- a/lib/browser/guest-window-manager.js +++ b/lib/browser/guest-window-manager.js @@ -51,7 +51,7 @@ const setupGuest = function (embedder, frameName, guest, options) { // When |embedder| is destroyed we should also destroy attached guest, and if // guest is closed by user then we should prevent |embedder| from double // closing guest. - const guestId = guest.id + const guestId = guest.webContents.id const closedByEmbedder = function () { guest.removeListener('closed', closedByUser) guest.destroy() @@ -80,7 +80,7 @@ const setupGuest = function (embedder, frameName, guest, options) { delete frameToGuest[frameName] }) } - return guest.id + return guestId } // Create a new guest created by |embedder| with |options|. @@ -88,7 +88,7 @@ const createGuest = function (embedder, url, frameName, options) { let guest = frameToGuest[frameName] if (frameName && (guest != null)) { guest.loadURL(url) - return guest.id + return guest.webContents.id } // Remember the embedder window's id.