2015-05-01 05:48:23 +00:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
window.onbeforeunload = function() {
|
|
|
|
setTimeout(function() {
|
2015-11-12 10:28:04 +00:00
|
|
|
var ipcRenderer = require('electron').ipcRenderer;
|
|
|
|
ipcRenderer.sendToHost('onbeforeunload');
|
2015-05-01 05:48:23 +00:00
|
|
|
}, 0);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|