Skip to content

Commit 8214ee8

Browse files
committed
fix blinking when toggling advanced
1 parent ab068cc commit 8214ee8

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎skins/base/views/templates/Login.js‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,19 @@ module.exports = React.createClass({
8080
},
8181

8282
onHsUrlChanged: function() {
83-
this.customHsUrl = this.refs.serverConfig.getHsUrl().trim();
84-
this.customIsUrl = this.refs.serverConfig.getIsUrl().trim();
83+
var newHsUrl = this.refs.serverConfig.getHsUrl().trim();
84+
var newIsUrl = this.refs.serverConfig.getIsUrl().trim();
85+
86+
if (newHsUrl == this.customHsUrl &&
87+
newIsUrl == this.customIsUrl)
88+
{
89+
return;
90+
}
91+
else {
92+
this.customHsUrl = newHsUrl;
93+
this.customIsUrl = newIsUrl;
94+
}
95+
8596
MatrixClientPeg.replaceUsingUrls(
8697
this.getHsUrl(),
8798
this.getIsUrl()

0 commit comments

Comments
 (0)