We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e86b5 commit fa13505Copy full SHA for fa13505
examples/widget/index.html
@@ -59,10 +59,12 @@
59
const qs = parseFragment();
60
const widgetId = assertParam(qs, 'widgetId');
61
const userId = assertParam(qs, 'userId');
62
+ // Allow all origins
63
+ const targetOrigin = '*';
64
let isSticky = false;
65
66
// Set up the widget API as soon as possible to avoid problems with the client
- const widgetApi = new mxwidgets.WidgetApi(widgetId);
67
+ const widgetApi = new mxwidgets.WidgetApi(widgetId, targetOrigin);
68
widgetApi.requestCapability(mxwidgets.MatrixCapabilities.AlwaysOnScreen);
69
70
widgetApi.on("ready", function() {
0 commit comments