Do process.emit('exit') in WillReleaseScriptContext
This commit is contained in:
parent
ffcf609de1
commit
bc196c016b
2 changed files with 3 additions and 5 deletions
|
@ -106,11 +106,6 @@ if (nodeIntegration === 'true' || nodeIntegration === 'all' || nodeIntegration =
|
|||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// Emit the 'exit' event when page is unloading.
|
||||
window.addEventListener('unload', function() {
|
||||
return process.emit('exit');
|
||||
});
|
||||
} else {
|
||||
// Delete Node's symbols after the Environment has been loaded.
|
||||
process.once('loaded', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue