From 0577316c8680c2d24b47b9d4699395a35fcdc2d9 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 8 Jan 2018 13:40:33 +0000 Subject: [PATCH] Fix duplicate event registration. --- src/components/views/elements/AppTile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index fa8696ea74..46cccde19f 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -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) {