Suppress yellow halo behind the first tab when devtools is closed

This commit is contained in:
Yuya Ochiai
2016-11-29 21:04:16 +09:00
parent e4f961f2f0
commit 16cd860901

View File

@@ -83,6 +83,11 @@ const MainPage = React.createClass({
currentWindow.removeListener('focus', focusListener);
});
// https://github.com/mattermost/desktop/pull/371#issuecomment-263072803
currentWindow.webContents.on('devtools-closed', () => {
focusListener();
});
//goBack and goForward
ipcRenderer.on('go-back', () => {
const mattermost = self.refs[`mattermostView${self.state.key}`];