Explorar o código

refac: azure url detection

Timothy Jaeryang Baek hai 2 meses
pai
achega
ffa8ad0a22
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/lib/components/AddConnectionModal.svelte

+ 1 - 3
src/lib/components/AddConnectionModal.svelte

@@ -35,9 +35,7 @@
 	let connectionType = 'external';
 	let connectionType = 'external';
 	let azure = false;
 	let azure = false;
 	$: azure =
 	$: azure =
-		(url.includes('azure.com') || url.includes('cognitive.microsoft.com')) && !direct
-			? true
-			: false;
+		(url.includes('azure.') || url.includes('cognitive.microsoft.com')) && !direct ? true : false;
 
 
 	let prefixId = '';
 	let prefixId = '';
 	let enable = true;
 	let enable = true;