Skip to content

Commit

Permalink
Merge pull request #36 from dubinc/simplify
Browse files Browse the repository at this point in the history
Simplify script
  • Loading branch information
steven-tey authored Feb 7, 2025
2 parents 129e86e + a141d1c commit b133449
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/script/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@
);
return;
}

if (res.status === 204) {
console.warn(
`[Dub Analytics] Link does not exist for identifier: ${identifier}. Click not tracked.`,
);
return;
}

const { clickId } = await res.json(); // Response: { clickId: string }
checkCookieAndSet(clickId);
});
Expand Down

0 comments on commit b133449

Please sign in to comment.