Update specs to match the documents.

This commit is contained in:
Cheng Zhao 2013-09-02 16:54:54 +08:00
parent 893309aa8a
commit 75a24a2e67
2 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,13 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
window.onbeforeunload = function() {
setTimeout(function() {
require('remote').getCurrentWindow().emit('onbeforeunload');
}, 0);
return '';
}
window.close();
</script>
</body>
</html>