Browse Source

refac: azure url detection

Timothy Jaeryang Baek 2 months ago
parent
commit
ffa8ad0a22
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/lib/components/AddConnectionModal.svelte

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

@@ -35,9 +35,7 @@
 	let connectionType = 'external';
 	let azure = false;
 	$: 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 enable = true;