Skip to content

Commit

Permalink
ts-ignore navigator.globalPrivacyControl
Browse files Browse the repository at this point in the history
  • Loading branch information
starsep committed Feb 12, 2024
1 parent 8870e7d commit a776abd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ function shouldEnableSentry(): boolean {
navigator.doNotTrack === "1" ||
navigator.doNotTrack === "yes" ||
navigator.doNotTrack === "true";
const globalPrivacyControl =
navigator.globalPrivacyControl === true ||
// @ts-ignore
const globalPrivacyControl = // @ts-ignore
navigator.globalPrivacyControl === true || // @ts-ignore
navigator.globalPrivacyControl === "true";
return !doNotTrack && !globalPrivacyControl;
}

0 comments on commit a776abd

Please sign in to comment.