Skip to content

Commit

Permalink
Update analytics.js
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Sep 30, 2022
1 parent 921b1a6 commit 069cda3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/') ||
Expand All @@ -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, {
Expand Down

2 comments on commit 069cda3

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.