add a menu to open dev tools for current webview

This commit is contained in:
Romain Maneschi
2019-02-07 00:20:26 +01:00
parent a1b0a28261
commit 1ef2108756
2 changed files with 10 additions and 1 deletions

View File

@@ -112,6 +112,10 @@ export default class MainPage extends React.Component {
focusListener();
});
ipcRenderer.on('open-devtool', () => {
document.getElementById(`mattermostView${self.state.key}`).openDevTools();
});
//goBack and goForward
ipcRenderer.on('go-back', () => {
const mattermost = self.refs[`mattermostView${self.state.key}`];