small tweaks to test code to get it to work
[aai/sparky-fe.git] / src / app / MainScreenHeader.jsx
index 8c5e13d..1a39bc4 100644 (file)
@@ -234,9 +234,8 @@ class MainScreenHeader extends Component {
     if(this.props.subscriptionEnabled) {
       var $this = this;
       window.removeEventListener('message', function (e) {
-          $this.receiveMessage(e, $this);
-        }
-      );
+        $this.receiveMessage(e, $this);
+      });
     }
   }