Fix errors

This commit is contained in:
Michael Vasseur 2016-10-05 11:46:55 +02:00
parent 9490ec7686
commit 3dd41bc09a

View file

@ -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.