mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Fix default servers
This commit is contained in:
parent
ef764c112e
commit
bb405563c8
1 changed files with 2 additions and 4 deletions
|
@ -99,9 +99,8 @@ module.exports = React.createClass({
|
|||
return window.localStorage.getItem("mx_hs_url");
|
||||
}
|
||||
else {
|
||||
return this.props.config.default_hs_url
|
||||
return this.props.config.default_hs_url || "https://matrix.org";
|
||||
}
|
||||
return "https://matrix.org";
|
||||
},
|
||||
|
||||
getFallbackHsUrl: function() {
|
||||
|
@ -118,9 +117,8 @@ module.exports = React.createClass({
|
|||
return window.localStorage.getItem("mx_is_url");
|
||||
}
|
||||
else {
|
||||
return this.props.config.default_is_url
|
||||
return this.props.config.default_is_url || "https://matrix.org"
|
||||
}
|
||||
return "https://matrix.org";
|
||||
},
|
||||
|
||||
componentWillMount: function() {
|
||||
|
|
Loading…
Reference in a new issue