Debugging
This commit is contained in:
parent
447db3df62
commit
0c6c0f32dd
2 changed files with 2 additions and 2 deletions
|
@ -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`);
|
||||
|
|
Loading…
Add table
Reference in a new issue