🎨 Use embedder var for clarity
This commit is contained in:
parent
a7c050107b
commit
941f6c63e3
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ const attachGuest = function (event, elementInstanceId, guestInstanceId, params)
|
|||
webPreferences.preloadURL = params.preload
|
||||
}
|
||||
|
||||
event.sender.emit('will-attach-webview', event, webPreferences, params)
|
||||
embedder.emit('will-attach-webview', event, webPreferences, params)
|
||||
if (event.defaultPrevented) {
|
||||
if (guest.viewInstanceId == null) guest.viewInstanceId = params.instanceId
|
||||
destroyGuest(embedder, guestInstanceId)
|
||||
|
|
Loading…
Reference in a new issue