diff options
author | 2022-05-07 13:17:26 -0500 | |
---|---|---|
committer | 2022-05-07 18:17:26 +0000 | |
commit | a24c037b322dbdc56cbaae3d3fe6f5fa1e819972 (patch) | |
tree | df2125dd4e388c30e5e7a91d02683b86346edfb8 /src/components/auth/ChangeServer.js | |
parent | New Crowdin updates (#118) [skip ci] (diff) | |
download | ferdium-app-a24c037b322dbdc56cbaae3d3fe6f5fa1e819972.tar.gz ferdium-app-a24c037b322dbdc56cbaae3d3fe6f5fa1e819972.tar.zst ferdium-app-a24c037b322dbdc56cbaae3d3fe6f5fa1e819972.zip |
New fix for fixing URLs with '//' (#105)
Diffstat (limited to 'src/components/auth/ChangeServer.js')
-rw-r--r-- | src/components/auth/ChangeServer.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/auth/ChangeServer.js b/src/components/auth/ChangeServer.js index 081f2d61f..aa4598928 100644 --- a/src/components/auth/ChangeServer.js +++ b/src/components/auth/ChangeServer.js | |||
@@ -121,7 +121,10 @@ class ChangeServer extends Component { | |||
121 | {!this.defaultServers.includes(form.$('server').value) && ( | 121 | {!this.defaultServers.includes(form.$('server').value) && ( |
122 | <Input | 122 | <Input |
123 | placeholder="Custom Server" | 123 | placeholder="Custom Server" |
124 | onChange={e => this.submit(e)} | 124 | onChange={e => { |
125 | this.form.$('customServer').value = this.form.$('customServer').value.replace(/\/$/, ""); | ||
126 | this.submit(e) | ||
127 | }} | ||
125 | field={form.$('customServer')} | 128 | field={form.$('customServer')} |
126 | /> | 129 | /> |
127 | )} | 130 | )} |