Skip to content

Commit 22af368

Browse files
authored
Merge pull request #965 from input-output-hk/fix/sentry-injection
fix: stop injecting Sentry client into content scripts
2 parents b7ddef9 + 9360ddc commit 22af368

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/features/sentry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Sentry.init({
2121
// A tracesSampleRate of 0.05 and profilesSampleRate of 0.05 results in 2.5% of
2222
// transactions being profiled (0.05*0.05=0.0025)
2323

24-
// Capture Replay for 0.5% of all sessions,
24+
// Capture Replay for 0.05% of all sessions,
2525
replaysSessionSampleRate: 0.005,
2626
// ...plus for 100% of sessions with an error
2727
replaysOnErrorSampleRate: 1.0,

webpack.config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,9 @@ var options = {
8080
path.join(__dirname, 'src', 'ui', 'app', 'tabs', 'trezorTx.jsx')
8181
),
8282
background: path.join(__dirname, 'src', 'pages', 'Background', 'index.js'),
83-
contentScript: withMaybeSentry(
84-
path.join(__dirname, 'src', 'pages', 'Content', 'index.js')
85-
),
86-
injected: withMaybeSentry(
87-
path.join(__dirname, 'src', 'pages', 'Content', 'injected.js')
88-
),
89-
trezorContentScript: withMaybeSentry(
90-
path.join(__dirname, 'src', 'pages', 'Content', 'trezorContentScript.js')
91-
),
83+
contentScript: path.join(__dirname, 'src', 'pages', 'Content', 'index.js'),
84+
injected: path.join(__dirname, 'src', 'pages', 'Content', 'injected.js'),
85+
trezorContentScript: path.join(__dirname, 'src', 'pages', 'Content', 'trezorContentScript.js'),
9286
},
9387
chromeExtensionBoilerplate: {
9488
notHotReload: ['contentScript', 'devtools', 'injected'],

0 commit comments

Comments
 (0)