mirror of https://github.com/vector-im/riot-web
Revert "Redirect widgets to another location before deleting them"
This reverts commit 275d88dd4f
.
pull/21833/head
parent
275d88dd4f
commit
c75beb0196
|
@ -318,19 +318,6 @@ export default class AppTile extends React.Component {
|
||||||
}
|
}
|
||||||
this.setState({deleting: true});
|
this.setState({deleting: true});
|
||||||
|
|
||||||
// HACK: This is a really dirty way to ensure that Jitsi cleans up
|
|
||||||
// its hold on the webcam. Without this, the widget holds a media
|
|
||||||
// stream open, even after death. See https://github.com/vector-im/riot-web/issues/7351
|
|
||||||
if (this.refs.appFrame) {
|
|
||||||
// In practice we could just do `+= ''` to trick the browser
|
|
||||||
// into thinking the URL changed, however I can foresee this
|
|
||||||
// being optimized out by a browser. Instead, we'll just point
|
|
||||||
// the iframe at a page that is reasonably safe to use in the
|
|
||||||
// event the iframe doesn't wink away.
|
|
||||||
// This is relative to where the Riot instance is located.
|
|
||||||
this.refs.appFrame.src = '/config.json';
|
|
||||||
}
|
|
||||||
|
|
||||||
WidgetUtils.setRoomWidget(
|
WidgetUtils.setRoomWidget(
|
||||||
this.props.room.roomId,
|
this.props.room.roomId,
|
||||||
this.props.id,
|
this.props.id,
|
||||||
|
|
Loading…
Reference in New Issue