[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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}
}
handleMouseMove = (event) => {