Remove guest from will-attach-webview event
This commit is contained in:
parent
acff2f6baf
commit
a7c050107b
4 changed files with 3 additions and 4 deletions
|
@ -206,7 +206,7 @@ const attachGuest = function (event, elementInstanceId, guestInstanceId, params)
|
|||
webPreferences.preloadURL = params.preload
|
||||
}
|
||||
|
||||
event.sender.emit('will-attach-webview', event, guest, webPreferences, params)
|
||||
event.sender.emit('will-attach-webview', event, webPreferences, params)
|
||||
if (event.defaultPrevented) {
|
||||
if (guest.viewInstanceId == null) guest.viewInstanceId = params.instanceId
|
||||
destroyGuest(embedder, guestInstanceId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue