mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +03:00
fix blinking when toggling advanced
This commit is contained in:
parent
ab068cc372
commit
8214ee8fad
1 changed files with 13 additions and 2 deletions
|
@ -80,8 +80,19 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onHsUrlChanged: function() {
|
onHsUrlChanged: function() {
|
||||||
this.customHsUrl = this.refs.serverConfig.getHsUrl().trim();
|
var newHsUrl = this.refs.serverConfig.getHsUrl().trim();
|
||||||
this.customIsUrl = this.refs.serverConfig.getIsUrl().trim();
|
var newIsUrl = this.refs.serverConfig.getIsUrl().trim();
|
||||||
|
|
||||||
|
if (newHsUrl == this.customHsUrl &&
|
||||||
|
newIsUrl == this.customIsUrl)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.customHsUrl = newHsUrl;
|
||||||
|
this.customIsUrl = newIsUrl;
|
||||||
|
}
|
||||||
|
|
||||||
MatrixClientPeg.replaceUsingUrls(
|
MatrixClientPeg.replaceUsingUrls(
|
||||||
this.getHsUrl(),
|
this.getHsUrl(),
|
||||||
this.getIsUrl()
|
this.getIsUrl()
|
||||||
|
|
Loading…
Reference in a new issue