browser: hide webcontents when window not shown

This commit is contained in:
Robo 2015-09-22 22:21:49 +05:30
parent 1520ebfe1f
commit 5ca5c4fb92
3 changed files with 30 additions and 1 deletions

View file

@ -0,0 +1,7 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
require('ipc').send('hidden', document.hidden);
</script>
</body>
</html>