mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Merge remote-tracking branch 'origin/develop' into release-v0.8.7
This commit is contained in:
commit
a0b338efbe
2 changed files with 12 additions and 3 deletions
|
@ -82,4 +82,12 @@ export default class BasePlatform {
|
||||||
screenCaptureErrorString() {
|
screenCaptureErrorString() {
|
||||||
return "Not implemented";
|
return "Not implemented";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Restarts the application, without neccessarily reloading
|
||||||
|
* any application code
|
||||||
|
*/
|
||||||
|
reload() {
|
||||||
|
throw new Error("reload not implemented!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -441,10 +441,11 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
_onClearCacheClicked: function() {
|
_onClearCacheClicked: function() {
|
||||||
|
if (!PlatformPeg.get()) return;
|
||||||
|
|
||||||
|
MatrixClientPeg.get().stopClient();
|
||||||
MatrixClientPeg.get().store.deleteAllData().done(() => {
|
MatrixClientPeg.get().store.deleteAllData().done(() => {
|
||||||
// forceReload=false since we don't really need new HTML/JS files
|
PlatformPeg.get().reload();
|
||||||
// we just need to restart the JS runtime.
|
|
||||||
window.location.reload(false);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue