forked from github/cinny
Bind the on messaging iframe for easier access in hangup/join handling
This commit is contained in:
@@ -90,6 +90,8 @@ export class SmallWidget extends EventEmitter {
|
||||
|
||||
public url?: string;
|
||||
|
||||
public iframe: HTMLElement | null;
|
||||
|
||||
private type: string; // Type of the widget (e.g., 'm.call')
|
||||
|
||||
private readUpToMap: { [roomId: string]: string } = {}; // room ID to event ID
|
||||
@@ -123,7 +125,7 @@ export class SmallWidget extends EventEmitter {
|
||||
true,
|
||||
this.roomId
|
||||
);
|
||||
|
||||
this.iframe = iframe;
|
||||
this.messaging = new ClientWidgetApi(this.mockWidget, iframe, driver);
|
||||
|
||||
// Emit events during the widget lifecycle
|
||||
|
||||
Reference in New Issue
Block a user