[MM-36543] Check for webcontents before trying to load url in case tab was removed (#1633)
This commit is contained in:
@@ -110,7 +110,7 @@ export class MattermostView extends EventEmitter {
|
||||
retry = (loadURL) => {
|
||||
return () => {
|
||||
// window was closed while retrying
|
||||
if (!this.view) {
|
||||
if (!this.view || !this.view.webContents) {
|
||||
return;
|
||||
}
|
||||
const loading = this.view.webContents.loadURL(loadURL, {userAgent: composeUserAgent()});
|
||||
|
Reference in New Issue
Block a user