mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-06 06:53:18 +00:00
new-server-form: Strip whitespace from added organization URL.
Fixes #1037.
This commit is contained in:
committed by
Anders Kaseorg
parent
a2f926c611
commit
cd77fc6448
@@ -69,7 +69,7 @@ export default class NewServerForm extends BaseComponent {
|
|||||||
this.$saveServerButton.textContent = 'Connecting...';
|
this.$saveServerButton.textContent = 'Connecting...';
|
||||||
let serverConf;
|
let serverConf;
|
||||||
try {
|
try {
|
||||||
serverConf = await DomainUtil.checkDomain(this.$newServerUrl.value);
|
serverConf = await DomainUtil.checkDomain(this.$newServerUrl.value.trim());
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
this.$saveServerButton.textContent = 'Connect';
|
this.$saveServerButton.textContent = 'Connect';
|
||||||
await dialog.showMessageBox({
|
await dialog.showMessageBox({
|
||||||
|
|||||||
Reference in New Issue
Block a user