From 32aecd06304ccac283eba35b6c9a77233508888e Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 4 Jan 2018 18:43:08 +0000 Subject: [PATCH] Fix event call --- src/WidgetMessaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WidgetMessaging.js b/src/WidgetMessaging.js index 4b50b21626..934f9bc3f2 100644 --- a/src/WidgetMessaging.js +++ b/src/WidgetMessaging.js @@ -208,7 +208,7 @@ export default class WidgetMessaging extends MatrixPostMessageApi { startListening() { this.start(); if (global.mxWidgetMessagingListenerCount === 0) { - window.addEventListener("message", () => this.onMessage, false); + window.addEventListener("message", (evt) => this.onMessage(evt), false); } global.mxWidgetMessagingListenerCount += 1; }