matrix-widget-api icon indicating copy to clipboard operation
matrix-widget-api copied to clipboard

Reports that the example doesn't work anymore

Open robintown opened this issue 2 years ago • 0 comments

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.

robintown avatar May 10 '23 05:05 robintown