matrix-widget-api
matrix-widget-api copied to clipboard
Reports that the example doesn't work anymore
https://matrix.to/#/!rDkLtgRQarvieuFHBA:t2l.io/$M5vvMdiNrsNxh4eB8_S8Z-S17TrUns3KE-qXX71dYBk?via=matrix.org&via=element.io&via=envs.net
Yes you are right. You could try to pass either the client origin (i.e. the Element URL) of "*" to the WidgetApi constructor.
The problem was introduced in version 1.2.0: Before, the targetOrigin defaulted to "*" here. That was refactored to a default value here. However, the constructor of the WidgetApi overrides it with null, so it won't work anymore.