commit
cf6415bf84
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ window.onbeforeunload = function(e) {
|
|||
// prompted to confirm the page unload, Electron gives developers more options.
|
||||
// Returning empty string or false would prevent the unloading now.
|
||||
// You can also use the dialog API to let the user confirm closing the application.
|
||||
return false;
|
||||
e.returnValue = false;
|
||||
};
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue