* Messages in the widget, will only communicate with the main thread and will only accept messages from the main thread, * so simplify the parameters here. * @param type * @param callback
(type: MessageType, callback: (data: IResponse<any>) => void)
| 34 | * @param callback |
| 35 | */ |
| 36 | private on(type: MessageType, callback: (data: IResponse<any>) => void) { |
| 37 | return this.messageBridge.on(type, callback, this.origin, this.target); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Messages in the widget, will only communicate with the main thread and |
no outgoing calls
no test coverage detected