mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +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;
|
break;
|
||||||
}
|
}
|
||||||
case 'vrdemo':
|
case 'vrdemo':
|
||||||
app.name = 'Matrix VR Demo';
|
app.name = 'Matrix VR Demo - ' + app.data.roomAlias;
|
||||||
|
app.queryParams = '?roomAlias=' + encodeURIComponent(app.data.roomAlias);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,6 +156,9 @@ module.exports = React.createClass({
|
|||||||
appsStateEvent.vrDemo = {
|
appsStateEvent.vrDemo = {
|
||||||
type: type,
|
type: type,
|
||||||
url: 'http://localhost:8000/vrdemo.html',
|
url: 'http://localhost:8000/vrdemo.html',
|
||||||
|
data: {
|
||||||
|
roomAlias: '#vrvc' + this.props.room.roomId.replace(/[^A-Za-z0-9]/g, '_') + Date.now(),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 'custom':
|
case 'custom':
|
||||||
|
Loading…
Reference in New Issue
Block a user