mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:27:19 +08:00
AppsDrawer: Generate room alias for vrdemo
This commit is contained in:
parent
9c8ab2691b
commit
2d3c886646
@ -65,7 +65,8 @@ module.exports = React.createClass({
|
||||
break;
|
||||
}
|
||||
case 'vrdemo':
|
||||
app.name = 'Matrix VR Demo';
|
||||
app.name = 'Matrix VR Demo - ' + app.data.roomAlias;
|
||||
app.queryParams = '?roomAlias=' + encodeURIComponent(app.data.roomAlias);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -155,6 +156,9 @@ module.exports = React.createClass({
|
||||
appsStateEvent.vrDemo = {
|
||||
type: type,
|
||||
url: 'http://localhost:8000/vrdemo.html',
|
||||
data: {
|
||||
roomAlias: '#vrvc' + this.props.room.roomId.replace(/[^A-Za-z0-9]/g, '_') + Date.now(),
|
||||
},
|
||||
};
|
||||
break;
|
||||
case 'custom':
|
||||
|
Loading…
Reference in New Issue
Block a user