forked from matrix/element-web
Remove useless app preloading from Jitsi widget wrapper
We should always have conference information, and if we don't then the widget is invalid.
This commit is contained in:
parent
c4bece1fd5
commit
350a52b44e
|
@ -20,7 +20,6 @@ require("./index.scss");
|
||||||
import * as qs from 'querystring';
|
import * as qs from 'querystring';
|
||||||
import { Capability, WidgetApi } from "matrix-react-sdk/src/widgets/WidgetApi";
|
import { Capability, WidgetApi } from "matrix-react-sdk/src/widgets/WidgetApi";
|
||||||
import SdkConfig from "matrix-react-sdk/src/SdkConfig";
|
import SdkConfig from "matrix-react-sdk/src/SdkConfig";
|
||||||
import { loadConfig, preparePlatform } from "../initial-load";
|
|
||||||
|
|
||||||
// Dev note: we use raw JS without many dependencies to reduce bundle size.
|
// Dev note: we use raw JS without many dependencies to reduce bundle size.
|
||||||
// We do not need all of React to render a Jitsi conference.
|
// We do not need all of React to render a Jitsi conference.
|
||||||
|
@ -61,12 +60,8 @@ let widgetApi: WidgetApi;
|
||||||
await widgetApi.setAlwaysOnScreen(false);
|
await widgetApi.setAlwaysOnScreen(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Bootstrap ourselves for loading the script and such
|
|
||||||
preparePlatform();
|
|
||||||
await loadConfig();
|
|
||||||
|
|
||||||
// Populate the Jitsi params now
|
// Populate the Jitsi params now
|
||||||
jitsiDomain = qsParam('conferenceDomain', true) || SdkConfig.get()['jitsi']['preferredDomain'];
|
jitsiDomain = qsParam('conferenceDomain', false);
|
||||||
conferenceId = qsParam('conferenceId');
|
conferenceId = qsParam('conferenceId');
|
||||||
displayName = qsParam('displayName', true);
|
displayName = qsParam('displayName', true);
|
||||||
avatarUrl = qsParam('avatarUrl', true); // http not mxc
|
avatarUrl = qsParam('avatarUrl', true); // http not mxc
|
||||||
|
|
Loading…
Reference in New Issue