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
|
// When |embedder| is destroyed we should also destroy attached guest, and if
|
||||||
// guest is closed by user then we should prevent |embedder| from double
|
// guest is closed by user then we should prevent |embedder| from double
|
||||||
// closing guest.
|
// closing guest.
|
||||||
const guestId = guest.id
|
const guestId = guest.webContents.id
|
||||||
const closedByEmbedder = function () {
|
const closedByEmbedder = function () {
|
||||||
guest.removeListener('closed', closedByUser)
|
guest.removeListener('closed', closedByUser)
|
||||||
guest.destroy()
|
guest.destroy()
|
||||||
|
@ -80,7 +80,7 @@ const setupGuest = function (embedder, frameName, guest, options) {
|
||||||
delete frameToGuest[frameName]
|
delete frameToGuest[frameName]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return guest.id
|
return guestId
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a new guest created by |embedder| with |options|.
|
// Create a new guest created by |embedder| with |options|.
|
||||||
|
@ -88,7 +88,7 @@ const createGuest = function (embedder, url, frameName, options) {
|
||||||
let guest = frameToGuest[frameName]
|
let guest = frameToGuest[frameName]
|
||||||
if (frameName && (guest != null)) {
|
if (frameName && (guest != null)) {
|
||||||
guest.loadURL(url)
|
guest.loadURL(url)
|
||||||
return guest.id
|
return guest.webContents.id
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remember the embedder window's id.
|
// Remember the embedder window's id.
|
||||||
|
|
Loading…
Reference in a new issue