add a menu to open dev tools for current webview
This commit is contained in:
@@ -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}`];
|
||||
|
Reference in New Issue
Block a user