[MM-36543] Check for webcontents before trying to load url in case tab was removed (#1633)
This commit is contained in:
parent
62a0d148ec
commit
422673a740
|
@ -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()});
|
||||
|
|
Loading…
Reference in a new issue