mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-16 06:41:10 +01:00
Merge pull request #228 from matrix-org/dbkr/fix_email_validation_hs_url
Make getCurrent[H|I]SUrl honour the state setting that comes from the url bar
This commit is contained in:
commit
59eab23af6
@ -86,7 +86,9 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getCurrentHsUrl: function() {
|
getCurrentHsUrl: function() {
|
||||||
if (MatrixClientPeg.get()) {
|
if (this.state.register_hs_url) {
|
||||||
|
return this.state.register_hs_url;
|
||||||
|
} else if (MatrixClientPeg.get()) {
|
||||||
return MatrixClientPeg.get().getHomeserverUrl();
|
return MatrixClientPeg.get().getHomeserverUrl();
|
||||||
}
|
}
|
||||||
else if (window.localStorage && window.localStorage.getItem("mx_hs_url")) {
|
else if (window.localStorage && window.localStorage.getItem("mx_hs_url")) {
|
||||||
@ -99,7 +101,9 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getCurrentIsUrl: function() {
|
getCurrentIsUrl: function() {
|
||||||
if (MatrixClientPeg.get()) {
|
if (this.state.register_is_url) {
|
||||||
|
return this.state.register_is_url;
|
||||||
|
} else if (MatrixClientPeg.get()) {
|
||||||
return MatrixClientPeg.get().getIdentityServerUrl();
|
return MatrixClientPeg.get().getIdentityServerUrl();
|
||||||
}
|
}
|
||||||
else if (window.localStorage && window.localStorage.getItem("mx_is_url")) {
|
else if (window.localStorage && window.localStorage.getItem("mx_is_url")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user