瀏覽代碼

refac: azure url detection

Timothy Jaeryang Baek 2 月之前
父節點
當前提交
ffa8ad0a22
共有 1 個文件被更改,包括 1 次插入3 次删除
  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;