File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ interface WebWorkerIntegration extends Integration {
25
25
* any messages from the worker. Otherwise, your message handlers will receive
26
26
* messages from the Sentry SDK which you need to ignore.
27
27
*
28
- * This integration only has an effect, if you call `Sentry.registerWorker (self)`
28
+ * This integration only has an effect, if you call `Sentry.registerWebWorker (self)`
29
29
* from within the worker(s) you're adding to the integration.
30
30
*
31
31
* Given that you want to initialize the SDK as early as possible, you most likely
@@ -114,7 +114,7 @@ function listenForSentryDebugIdMessages(worker: Worker): void {
114
114
}
115
115
116
116
interface RegisterWebWorkerOptions {
117
- self : Worker & { _sentryDebugIds ?: Record < string , string > } ;
117
+ self : DedicatedWorkerGlobalScope & { _sentryDebugIds ?: Record < string , string > } ;
118
118
}
119
119
120
120
/**
@@ -125,7 +125,7 @@ interface RegisterWebWorkerOptions {
125
125
* import * as Sentry from '@sentry/<your-sdk>';
126
126
*
127
127
* // Do this as early as possible in your worker.
128
- * Sentry.registerWorker ({ self });
128
+ * Sentry.registerWebWorker ({ self });
129
129
*
130
130
* // continue setting up your worker
131
131
* self.postMessage(...)
Original file line number Diff line number Diff line change 4
4
"include" : [" src/**/*" , " test/loader.js" ],
5
5
6
6
"compilerOptions" : {
7
- "lib" : [" DOM" , " ES2018" ],
7
+ "lib" : [" DOM" , " ES2018" , " WebWorker " ]
8
8
}
9
9
}
You can’t perform that action at this time.
0 commit comments