Fix wrong type call for window.location.reload

This commit is contained in:
Dariusz Niemczyk 2021-10-15 16:55:32 +02:00 committed by Dariusz Niemczyk
parent 195234a7b5
commit 515a8d2097
2 changed files with 3 additions and 8 deletions

View File

@ -489,10 +489,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
}
reload() {
// we used to remote to the main process to get it to
// reload the webcontents, but in practice this is unnecessary:
// the normal way works fine.
window.location.reload(false);
window.location.reload();
}
private async ipcCall(name: string, ...args: any[]): Promise<any> {

View File

@ -178,7 +178,7 @@ export default class WebPlatform extends VectorBasePlatform {
}
installUpdate() {
window.location.reload(true);
window.location.reload();
}
getDefaultDeviceDisplayName(): string {
@ -212,8 +212,6 @@ export default class WebPlatform extends VectorBasePlatform {
}
reload() {
// forceReload=false since we don't really need new HTML/JS files
// we just need to restart the JS runtime.
window.location.reload(false);
window.location.reload();
}
}