new-server-form: Strip whitespace from added organization URL.

Fixes #1037.
This commit is contained in:
aryanshridhar
2020-11-15 22:14:17 +05:30
committed by Anders Kaseorg
parent a2f926c611
commit cd77fc6448

View File

@@ -69,7 +69,7 @@ export default class NewServerForm extends BaseComponent {
this.$saveServerButton.textContent = 'Connecting...';
let serverConf;
try {
serverConf = await DomainUtil.checkDomain(this.$newServerUrl.value);
serverConf = await DomainUtil.checkDomain(this.$newServerUrl.value.trim());
} catch (error: unknown) {
this.$saveServerButton.textContent = 'Connect';
await dialog.showMessageBox({