mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 22:40:29 +03:00
Bind the on messaging iframe for easier access in hangup/join handling
This commit is contained in:
parent
39b20c7cc7
commit
42252829c6
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue