move all the localstorage crap to TextualBody

pull/21833/head
Matthew Hodgson 2016-04-11 23:53:36 +01:00
parent 8e48bed346
commit 9845e5ef0e
1 changed files with 3 additions and 0 deletions

View File

@ -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());
}
},
}
},