mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Use URL without wurl params for popout
The popout can't be assumed to have the widget API available, so just leave these params out.
This commit is contained in:
parent
d92a19ecff
commit
3087f816fe
1 changed files with 4 additions and 4 deletions
|
@ -583,17 +583,17 @@ export default class AppTile extends React.Component {
|
|||
url = WidgetUtils.getLocalJitsiWrapperUrl({forLocalRender: true});
|
||||
url = this._addWurlParams(url);
|
||||
} else {
|
||||
url = this._getSafeUrl();
|
||||
url = this._getSafeUrl(this.state.widgetUrl);
|
||||
}
|
||||
return this._templatedUrl(url);
|
||||
}
|
||||
|
||||
_getPopoutUrl() {
|
||||
return this._templatedUrl(this._getSafeUrl());
|
||||
return this._templatedUrl(this._getSafeUrl(this.props.app.url));
|
||||
}
|
||||
|
||||
_getSafeUrl() {
|
||||
const parsedWidgetUrl = url.parse(this.state.widgetUrl, true);
|
||||
_getSafeUrl(u) {
|
||||
const parsedWidgetUrl = url.parse(u, true);
|
||||
if (ENABLE_REACT_PERF) {
|
||||
parsedWidgetUrl.search = null;
|
||||
parsedWidgetUrl.query.react_perf = true;
|
||||
|
|
Loading…
Reference in a new issue