Cache browser visibility state & emit visibilitychange event on change

Fixes #3788
This commit is contained in:
Arek Sredzki 2016-03-07 01:26:36 -08:00
parent 377a8eefb2
commit ee61ab2d26
4 changed files with 35 additions and 12 deletions

View file

@ -3,7 +3,7 @@ const v8Util = process.atomBinding('v8_util');
var slice = [].slice;
// Created by init.coffee.
// Created by init.js.
const ipcRenderer = v8Util.getHiddenValue(global, 'ipc');
ipcRenderer.send = function() {