mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +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...';
 | 
			
		||||
		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({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user