From 069cda334c6ef81c239c140c6bb5189955a77875 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Fri, 30 Sep 2022 19:34:47 +0200 Subject: [PATCH] Update analytics.js --- src/analytics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/analytics.js b/src/analytics.js index 05ce5e9e1..f12812d8d 100644 --- a/src/analytics.js +++ b/src/analytics.js @@ -186,7 +186,7 @@ const send = async ({ try { if (ITERATIVE_DO_NOT_TRACK) return; if (!event.user_id || event.user_id === ID_DO_NOT_TRACK) return; - + // Exclude continuous integration tests and internal projects from analytics if ( GITHUB_REPOSITORY.startsWith('iterative/') || @@ -195,7 +195,7 @@ const send = async ({ ['iterative-ai', 'iterative-test'].includes(BITBUCKET_WORKSPACE) ) return; - + const controller = new AbortController(); const id = setTimeout(() => controller.abort(), 5 * 1000); await fetch(endpoint, {