mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +03:00
Fix event call
This commit is contained in:
parent
b85efa08ce
commit
32aecd0630
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue