mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	validate zulip server in pref window
This commit is contained in:
		@@ -6,10 +6,10 @@
 | 
			
		||||
		    const data = db.getData("/");
 | 
			
		||||
 | 
			
		||||
		    if (data["domain"] !== undefined) {
 | 
			
		||||
		        window.location.href = 'https://' + data["domain"];
 | 
			
		||||
		        window.location.href = data["domain"];
 | 
			
		||||
 | 
			
		||||
		    } else {
 | 
			
		||||
		    	
 | 
			
		||||
 | 
			
		||||
		        dialogs.prompt('Enter the URL for your Zulip server', function(url) {
 | 
			
		||||
 | 
			
		||||
		        	let newurl = 'https://' + url.replace(/^https?:\/\//,'')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user