Set widget ID on WidgetMessaging instance.

This commit is contained in:
Richard Lewis 2017-12-29 14:34:52 +00:00
parent 7660176079
commit a408b98504
2 changed files with 4 additions and 3 deletions

View file

@ -170,8 +170,9 @@ if (!global.mxWidgetMessagingMessageEndpoints) {
}
export default class WidgetMessaging extends MatrixPostMessageApi {
constructor(targetWindow) {
constructor(widgetId, targetWindow) {
super(targetWindow);
this.widgetId = widgetId;
}
exec(action) {