Skip to content

Commit

Permalink
fix(tracker): add default value for acceptDoNotTrack option
Browse files Browse the repository at this point in the history
This was effectively not introducing any bug because value was only checked for truthiness, not strict boolean value.
  • Loading branch information
EmmanuelRoux committed May 28, 2024
1 parent 6a23630 commit 243fc46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ngx-matomo-client/core/tracker/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const INTERNAL_MATOMO_CONFIGURATION = new InjectionToken<InternalMatomoCo
requireConsent: MatomoConsentMode.NONE,
enableJSErrorTracking: false,
runOutsideAngularZone: false,
acceptDoNotTrack: false,
...requireNonNull(inject(MATOMO_CONFIGURATION, { optional: true }), CONFIG_NOT_FOUND),
}) as InternalMatomoConfiguration,
},
Expand Down

0 comments on commit 243fc46

Please sign in to comment.