mirror of https://github.com/vector-im/riot-web
move all the localstorage crap to TextualBody
parent
8e48bed346
commit
9845e5ef0e
|
@ -111,6 +111,9 @@ module.exports = React.createClass({
|
|||
|
||||
unhideWidget: function() {
|
||||
self.setState({ widgetHidden: false });
|
||||
if (global.localStorage) {
|
||||
global.localStorage.removeItem("hide_preview_" + self.props.mxEvent.getId());
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue