Fix errors
This commit is contained in:
parent
9490ec7686
commit
3dd41bc09a
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue