Skip to content

Commit 31f8bbc

Browse files
committed
feat(sentry): docs cleanup
1 parent 2f2077b commit 31f8bbc

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,3 @@ The hCaptcha Loader targeted for older browsers can also be imported via CDN by
118118
## CSP
119119

120120
Note that you should use the `strict-dynamic` policy for this loader, as it needs to load the SDK via `appendChild()`.
121-
122-
## Sentry
123-
124-
If the `sentry` flag is enabled, this loader expects to have access to the Sentry SDK, version 8.x or later.
125-
126-
If you have an older `@sentry/browser` client version on your site for your own use, it may take precedence over the bundled version. In this case you may see a console error like "g.setPropagationContext is not a function" due to the loader trying to call methods only available on newer Sentry clients.
127-
128-
To resolve this, update the version of the Sentry client you are including on your site to 8.x or higher.

lib/src/sentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const SENTRY_DSN = process.env.SENTRY_DSN_TOKEN;
77
const VERSION = process.env.VERSION;
88
const BUILD = process.env.BUILD;
99

10-
export function initSentry(sentry: boolean) {
10+
export function initSentry(sentry: boolean = true) {
1111
if (!sentry) {
1212
return getSentry();
1313
}

0 commit comments

Comments
 (0)