Setting defaults from config.json got lost
This commit is contained in:
parent
c57fb44c71
commit
714c96283e
|
@ -24,6 +24,7 @@ var MatrixChatController = require('matrix-react-sdk/lib/controllers/pages/Matri
|
||||||
var dis = require('matrix-react-sdk/lib/dispatcher');
|
var dis = require('matrix-react-sdk/lib/dispatcher');
|
||||||
var Matrix = require("matrix-js-sdk");
|
var Matrix = require("matrix-js-sdk");
|
||||||
var ContextualMenu = require("../../../../ContextualMenu");
|
var ContextualMenu = require("../../../../ContextualMenu");
|
||||||
|
var config = require("../../../../../config.json");
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'MatrixChat',
|
displayName: 'MatrixChat',
|
||||||
|
@ -169,7 +170,11 @@ module.exports = React.createClass({
|
||||||
} else {
|
} else {
|
||||||
var Login = require("../../../../components/login/Login");
|
var Login = require("../../../../components/login/Login");
|
||||||
return (
|
return (
|
||||||
<Login onLoggedIn={this.onLoggedIn} onRegisterClick={this.onRegisterClick} />
|
<Login
|
||||||
|
onLoggedIn={this.onLoggedIn}
|
||||||
|
onRegisterClick={this.onRegisterClick}
|
||||||
|
homeserverUrl={config.default_hs_url}
|
||||||
|
identityServerUrl={config.default_is_url} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue