[MM-23784] Removed unnecessary code for focusing the mattermost view (#1258)
This commit is contained in:
parent
adaeea2082
commit
b573e773d8
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue