Fix crash when closing page with webview
This commit is contained in:
parent
af02739c4e
commit
44b8343585
2 changed files with 13 additions and 9 deletions
|
@ -52,7 +52,7 @@ createGuest = function(embedder, params) {
|
|||
};
|
||||
|
||||
/* Destroy guest when the embedder is gone or navigated. */
|
||||
destroyEvents = ['destroyed', 'crashed', 'did-navigate'];
|
||||
destroyEvents = ['will-destroy', 'crashed', 'did-navigate'];
|
||||
destroy = function() {
|
||||
if (guestInstances[id] != null) {
|
||||
return destroyGuest(embedder, id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue