mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
@@ -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;
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user