Make the config optional

pull/21833/head
David Baker 2016-06-08 18:45:46 +01:00
parent b5ff247f09
commit c123f02842
1 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ module.exports = React.createClass({
displayName: 'MatrixChat',
propTypes: {
config: React.PropTypes.object.isRequired,
config: React.PropTypes.object,
ConferenceHandler: React.PropTypes.any,
onNewScreen: React.PropTypes.func,
registrationUrl: React.PropTypes.string,
@ -84,7 +84,8 @@ module.exports = React.createClass({
getDefaultProps: function() {
return {
startingQueryParams: {}
startingQueryParams: {},
config: {},
};
},