You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Remove dead code tweaking server URLs on blur
This commit is contained in:
@@ -79,8 +79,6 @@ export default class ModularServerConfig extends React.PureComponent {
|
|||||||
|
|
||||||
onHomeserverBlur = (ev) => {
|
onHomeserverBlur = (ev) => {
|
||||||
this._hsTimeoutId = this._waitThenInvoke(this._hsTimeoutId, () => {
|
this._hsTimeoutId = this._waitThenInvoke(this._hsTimeoutId, () => {
|
||||||
let hsUrl = this.state.hsUrl.trim().replace(/\/$/, "");
|
|
||||||
if (hsUrl === "") hsUrl = this.props.defaultHsUrl;
|
|
||||||
this.props.onServerConfigChange({
|
this.props.onServerConfigChange({
|
||||||
hsUrl: this.state.hsUrl,
|
hsUrl: this.state.hsUrl,
|
||||||
isUrl: this.props.defaultIsUrl,
|
isUrl: this.props.defaultIsUrl,
|
||||||
|
|||||||
@@ -78,8 +78,6 @@ export default class ServerConfig extends React.PureComponent {
|
|||||||
|
|
||||||
onHomeserverBlur = (ev) => {
|
onHomeserverBlur = (ev) => {
|
||||||
this._hsTimeoutId = this._waitThenInvoke(this._hsTimeoutId, () => {
|
this._hsTimeoutId = this._waitThenInvoke(this._hsTimeoutId, () => {
|
||||||
let hsUrl = this.state.hsUrl.trim().replace(/\/$/, "");
|
|
||||||
if (hsUrl === "") hsUrl = this.props.defaultHsUrl;
|
|
||||||
this.props.onServerConfigChange({
|
this.props.onServerConfigChange({
|
||||||
hsUrl: this.state.hsUrl,
|
hsUrl: this.state.hsUrl,
|
||||||
isUrl: this.state.isUrl,
|
isUrl: this.state.isUrl,
|
||||||
@@ -94,8 +92,6 @@ export default class ServerConfig extends React.PureComponent {
|
|||||||
|
|
||||||
onIdentityServerBlur = (ev) => {
|
onIdentityServerBlur = (ev) => {
|
||||||
this._isTimeoutId = this._waitThenInvoke(this._isTimeoutId, () => {
|
this._isTimeoutId = this._waitThenInvoke(this._isTimeoutId, () => {
|
||||||
let isUrl = this.state.isUrl.trim().replace(/\/$/, "");
|
|
||||||
if (isUrl === "") isUrl = this.props.defaultIsUrl;
|
|
||||||
this.props.onServerConfigChange({
|
this.props.onServerConfigChange({
|
||||||
hsUrl: this.state.hsUrl,
|
hsUrl: this.state.hsUrl,
|
||||||
isUrl: this.state.isUrl,
|
isUrl: this.state.isUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user