test: remove usage of the remote module from tests (#23571)
This commit is contained in:
parent
6282487245
commit
7656480247
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
<script type="text/javascript" charset="utf-8">
|
||||
window.onbeforeunload = function() {
|
||||
setTimeout(function() {
|
||||
require('electron').remote.getCurrentWindow().emit('onbeforeunload');
|
||||
require('electron').ipcRenderer.sendSync('onbeforeunload');
|
||||
}, 0);
|
||||
}
|
||||
window.onload = () => window.close();
|
||||
|
|
Loading…
Reference in a new issue