[MM-23784] Removed unnecessary code for focusing the mattermost view (#1258)

This commit is contained in:
Devin Binnie
2020-04-07 09:11:31 -04:00
committed by GitHub
parent adaeea2082
commit b573e773d8

View File

@@ -234,11 +234,7 @@ export default class MattermostView extends React.Component {
focusOnWebView = () => {
const webview = this.webviewRef.current;
const webContents = webview.getWebContents(); // webContents might not be created yet.
if (webContents) {
webview.focus();
webContents.focus();
}
webview.focus();
}
handleMouseMove = (event) => {