mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-04 22:00:42 +03:00
Fix duplicate event registration.
This commit is contained in:
parent
5df9a01e64
commit
0577316c86
1 changed files with 1 additions and 2 deletions
|
@ -171,6 +171,7 @@ export default React.createClass({
|
|||
componentDidMount() {
|
||||
// Legacy Jitsi widget messaging -- TODO replace this with standard widget
|
||||
// postMessaging API
|
||||
dis.register(this._onAction);
|
||||
window.addEventListener('message', this._onMessage, false);
|
||||
},
|
||||
|
||||
|
@ -346,8 +347,6 @@ export default React.createClass({
|
|||
console.log("Failed to get widget capabilities", this.widgetId, err);
|
||||
});
|
||||
this.setState({loading: false});
|
||||
|
||||
dis.register(this._onAction);
|
||||
},
|
||||
|
||||
_onAction(payload) {
|
||||
|
|
Loading…
Reference in a new issue