[MM-23784] Removed unnecessary code for focusing the mattermost view (#1258)
This commit is contained in:
@@ -234,11 +234,7 @@ export default class MattermostView extends React.Component {
|
|||||||
|
|
||||||
focusOnWebView = () => {
|
focusOnWebView = () => {
|
||||||
const webview = this.webviewRef.current;
|
const webview = this.webviewRef.current;
|
||||||
const webContents = webview.getWebContents(); // webContents might not be created yet.
|
|
||||||
if (webContents) {
|
|
||||||
webview.focus();
|
webview.focus();
|
||||||
webContents.focus();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleMouseMove = (event) => {
|
handleMouseMove = (event) => {
|
||||||
|
Reference in New Issue
Block a user