[MM-35249] Set window bounds on initial load success (#1587)

This commit is contained in:
Devin Binnie
2021-05-06 09:27:27 -04:00
committed by GitHub
parent 7d333dfe8f
commit 75567342c1

View File

@@ -147,6 +147,7 @@ export class MattermostView extends EventEmitter {
this.removeLoading = setTimeout(this.setInitialized, MAX_LOADING_SCREEN_SECONDS, true);
this.emit(LOAD_SUCCESS, this.server.name, loadURL.toString());
this.view.webContents.send(SET_SERVER_NAME, this.server.name);
this.setBounds(getWindowBoundaries(this.window, !(urlUtils.isTeamUrl(this.server.url, this.view.webContents.getURL()) || urlUtils.isAdminUrl(this.server.url, this.view.webContents.getURL()))));
};
}