move all the localstorage crap to TextualBody
This commit is contained in:
parent
8e48bed346
commit
9845e5ef0e
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
unhideWidget: function() {
|
unhideWidget: function() {
|
||||||
self.setState({ widgetHidden: false });
|
self.setState({ widgetHidden: false });
|
||||||
|
if (global.localStorage) {
|
||||||
|
global.localStorage.removeItem("hide_preview_" + self.props.mxEvent.getId());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue