Fixed a crash when the view loads for the first time (#2931)
This commit is contained in:
parent
0cab09b7f5
commit
113fda79b1
|
@ -192,7 +192,6 @@ export class MattermostBrowserView extends EventEmitter {
|
|||
} else {
|
||||
loadURL = this.view.url.toString();
|
||||
}
|
||||
AppState.updateExpired(this.id, false);
|
||||
this.log.verbose(`Loading ${loadURL}`);
|
||||
const loading = this.browserView.webContents.loadURL(loadURL, {userAgent: composeUserAgent()});
|
||||
loading.then(this.loadSuccess(loadURL)).catch((err) => {
|
||||
|
@ -240,6 +239,7 @@ export class MattermostBrowserView extends EventEmitter {
|
|||
|
||||
reload = () => {
|
||||
this.resetLoadingStatus();
|
||||
AppState.updateExpired(this.id, false);
|
||||
this.load();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue