Skip to content

Commit

Permalink
Merge pull request #34 from dubinc/remove-restriction
Browse files Browse the repository at this point in the history
Remove client-side restriction
  • Loading branch information
steven-tey authored Jan 27, 2025
2 parents 60f44f5 + ea6b9a7 commit 0bd76dc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/script/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,6 @@
return;
}

if (
defaultCookieOptions.domain &&
!shortDomain.endsWith(defaultCookieOptions.domain)
) {
console.warn(
`[Dub Analytics] Specified short domain ${shortDomain} is not a subdomain of ${defaultCookieOptions.domain.slice(1)}. Clicks will not be tracked.`,
);
return;
}

fetch(`${apiHost}/track/click`, {
method: 'POST',
headers: {
Expand Down

0 comments on commit 0bd76dc

Please sign in to comment.