mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Review comments
This commit is contained in:
parent
0a31efa0b7
commit
8d6c3cd3f4
@ -419,7 +419,7 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
_onClearCacheClicked: function() {
|
||||
MatrixClientPeg.get().store.deleteAllData().then(() => {
|
||||
MatrixClientPeg.get().store.deleteAllData().done(() => {
|
||||
// forceReload=false since we don't really need new HTML/JS files
|
||||
// we just need to restart the JS runtime.
|
||||
window.location.reload(false);
|
||||
@ -704,7 +704,7 @@ module.exports = React.createClass({
|
||||
<div className="mx_UserSettings_section">
|
||||
<AccessibleButton className="mx_UserSettings_button danger"
|
||||
onClick={this._onClearCacheClicked}>
|
||||
Clear Cache (triggers page refresh)
|
||||
Clear Cache and Reload
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
</div>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user