Make the clear cache button work on desktop

Implement reload in Platforms to support
https://github.com/matrix-org/matrix-react-sdk/pull/798

Fixes https://github.com/vector-im/riot-web/issues/3597
This commit is contained in:
David Baker 2017-04-10 17:40:09 +01:00
parent a1cb566761
commit 7f6d9a625d
2 changed files with 10 additions and 0 deletions

View file

@ -139,4 +139,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
requestNotificationPermission() : Promise {
return q('granted');
}
reload() {
electron.remote.getCurrentWebContents().reload();
}
}