mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 00:39:07 +03:00
De-register listener.
This commit is contained in:
parent
54d128658e
commit
dc1423052f
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ export default React.createClass({
|
|||
componentWillUnmount() {
|
||||
this.widgetMessaging.stopListening();
|
||||
this.widgetMessaging.removeEndpoint(this.props.id, this.props.url);
|
||||
dis.unregister(this._onAction);
|
||||
window.removeEventListener('message', this._onMessage);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue