Remove dead code tweaking server URLs on blur

This commit is contained in:
J. Ryan Stinnett 2019-01-31 10:01:31 -06:00
parent c560fd32c4
commit 346f73bb1d
2 changed files with 0 additions and 6 deletions

View File

@ -79,8 +79,6 @@ export default class ModularServerConfig extends React.PureComponent {
onHomeserverBlur = (ev) => {
this._hsTimeoutId = this._waitThenInvoke(this._hsTimeoutId, () => {
let hsUrl = this.state.hsUrl.trim().replace(/\/$/, "");
if (hsUrl === "") hsUrl = this.props.defaultHsUrl;
this.props.onServerConfigChange({
hsUrl: this.state.hsUrl,
isUrl: this.props.defaultIsUrl,

View File

@ -78,8 +78,6 @@ export default class ServerConfig extends React.PureComponent {
onHomeserverBlur = (ev) => {
this._hsTimeoutId = this._waitThenInvoke(this._hsTimeoutId, () => {
let hsUrl = this.state.hsUrl.trim().replace(/\/$/, "");
if (hsUrl === "") hsUrl = this.props.defaultHsUrl;
this.props.onServerConfigChange({
hsUrl: this.state.hsUrl,
isUrl: this.state.isUrl,
@ -94,8 +92,6 @@ export default class ServerConfig extends React.PureComponent {
onIdentityServerBlur = (ev) => {
this._isTimeoutId = this._waitThenInvoke(this._isTimeoutId, () => {
let isUrl = this.state.isUrl.trim().replace(/\/$/, "");
if (isUrl === "") isUrl = this.props.defaultIsUrl;
this.props.onServerConfigChange({
hsUrl: this.state.hsUrl,
isUrl: this.state.isUrl,