mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
ModularWidgets: Add a quick VR demo widget
This commit is contained in:
parent
d67e7289e8
commit
880e7149f3
@ -18,6 +18,12 @@ class ModularWidgets {
|
||||
name: 'jitsi',
|
||||
description: 'Jitsi video conference',
|
||||
},
|
||||
{
|
||||
type: 'vrdemo',
|
||||
icon: 'http://localhost:8000/static/jitsi.png',
|
||||
name: 'vrdemo',
|
||||
description: 'Matrix VR Demo',
|
||||
},
|
||||
{
|
||||
type: 'custom',
|
||||
icon: 'http://localhost:8000/static/blocks.png',
|
||||
|
@ -65,6 +65,9 @@ module.exports = React.createClass({
|
||||
app.name += ' - ' + app.data.confId;
|
||||
break;
|
||||
}
|
||||
case 'vrdemo':
|
||||
app.name = 'Matrix VR Demo';
|
||||
break;
|
||||
}
|
||||
|
||||
return app;
|
||||
@ -149,6 +152,12 @@ module.exports = React.createClass({
|
||||
},
|
||||
};
|
||||
break;
|
||||
case 'vrdemo':
|
||||
appsStateEvent.vrDemo = {
|
||||
type: type,
|
||||
url: 'http://localhost:8000/vrdemo.html',
|
||||
};
|
||||
break;
|
||||
case 'custom':
|
||||
appsStateEvent.custom = {
|
||||
type: type,
|
||||
|
Loading…
Reference in New Issue
Block a user