From 845b84ffb170eaea4f4d6418ff800efe4937e717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9E=AC=EB=AF=BC?= Date: Sun, 28 Jan 2024 03:20:29 +0900 Subject: [PATCH] =?UTF-8?q?:technologist:=20=EB=84=A4=EC=9D=B4=EB=B0=8D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/tabs/tab-list.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/tabs/tab-list.svelte b/src/lib/tabs/tab-list.svelte index 4634b05..5aee72f 100644 --- a/src/lib/tabs/tab-list.svelte +++ b/src/lib/tabs/tab-list.svelte @@ -15,7 +15,7 @@ queryFn: () => chromeApi.getTabs() }); - const excludedPatterns = [ + const googleServicesUrl = [ 'https://chromewebstore.google.com/*', 'https://chrome.google.com/webstore/*', 'https://accounts.google.com/*', @@ -23,8 +23,8 @@ 'https://analytics.google.com/analytics/*' ]; - const isExcludedUrl = (url: string) => { - return excludedPatterns.some((pattern) => { + const isGoogleService = (url: string) => { + return googleServicesUrl.some((pattern) => { // Convert the '*' in the pattern to '.*' in the regex. const regexPattern = pattern.replace(/\*/g, '.*'); const regex = new RegExp(regexPattern); @@ -46,7 +46,7 @@ {#each $tabs.data as tab (tab.id)} - + {/each} {:else}