mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix wrong type call for window.location.reload
This commit is contained in:
parent
195234a7b5
commit
515a8d2097
@ -489,10 +489,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
// we used to remote to the main process to get it to
|
window.location.reload();
|
||||||
// reload the webcontents, but in practice this is unnecessary:
|
|
||||||
// the normal way works fine.
|
|
||||||
window.location.reload(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async ipcCall(name: string, ...args: any[]): Promise<any> {
|
private async ipcCall(name: string, ...args: any[]): Promise<any> {
|
||||||
|
@ -178,7 +178,7 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
installUpdate() {
|
installUpdate() {
|
||||||
window.location.reload(true);
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
getDefaultDeviceDisplayName(): string {
|
getDefaultDeviceDisplayName(): string {
|
||||||
@ -212,8 +212,6 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
// forceReload=false since we don't really need new HTML/JS files
|
window.location.reload();
|
||||||
// we just need to restart the JS runtime.
|
|
||||||
window.location.reload(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user