mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-04 00:48:47 +00:00
Debugging
This commit is contained in:
@@ -32,7 +32,7 @@ export async function loadApp(opts: IStartOpts) {
|
||||
return <AppTile
|
||||
app={{
|
||||
id: "test1234",
|
||||
url: "http://localhost:8081/index.html#/?widgetId=$matrix_widget_id",
|
||||
url: "http://localhost:8082/index.html#/?widgetId=$matrix_widget_id",
|
||||
name: "Test Widget",
|
||||
type: "m.custom",
|
||||
data: {},
|
||||
|
||||
@@ -22,7 +22,7 @@ import ReactDOM from 'react-dom';
|
||||
|
||||
// The widget's options are encoded into the fragment to avoid leaking info to the server. The widget
|
||||
// spec on the other hand requires the widgetId and parentUrl to show up in the regular query string.
|
||||
const widgetQuery = qs.parse(window.location.hash.substring(1));
|
||||
const widgetQuery = qs.parse(window.location.hash.substring(2));
|
||||
const qsParam = (name: string, optional = false): string => {
|
||||
if (!optional && (!widgetQuery[name] || typeof (widgetQuery[name]) !== 'string')) {
|
||||
throw new Error(`Expected singular ${name} in query string`);
|
||||
|
||||
Reference in New Issue
Block a user