File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,11 @@ exports.onClientEntry = function (_, pluginParams) {
6
6
const areOptionsDefined = areSentryOptionsDefined ( pluginParams ) ;
7
7
8
8
if ( isIntialized ) {
9
- window . Sentry = Sentry ; // For backwards compatibility
10
9
if ( areOptionsDefined ) {
11
10
console . warn (
12
11
'Sentry Logger [Warn]: The SDK was initialized in the Sentry config file, but options were found in the Gatsby config. ' +
13
- 'These have been ignored, merge them to the Sentry config if you want to use them.\n' +
14
- 'Learn more about the Gatsby SDK on https://docs.sentry.io/platforms/javascript/guides/gatsby/' ,
12
+ 'These have been ignored, merge them to the Sentry config if you want to use them.\n' +
13
+ 'Learn more about the Gatsby SDK on https://docs.sentry.io/platforms/javascript/guides/gatsby/' ,
15
14
) ;
16
15
}
17
16
return ;
@@ -20,7 +19,7 @@ exports.onClientEntry = function (_, pluginParams) {
20
19
if ( ! areOptionsDefined ) {
21
20
console . error (
22
21
'Sentry Logger [Error]: No config for the Gatsby SDK was found.\n' +
23
- 'Learn how to configure it on https://docs.sentry.io/platforms/javascript/guides/gatsby/' ,
22
+ 'Learn how to configure it on https://docs.sentry.io/platforms/javascript/guides/gatsby/' ,
24
23
) ;
25
24
return ;
26
25
}
@@ -32,7 +31,6 @@ exports.onClientEntry = function (_, pluginParams) {
32
31
dsn : __SENTRY_DSN__ ,
33
32
...pluginParams ,
34
33
} ) ;
35
- window . Sentry = Sentry ; // For backwards compatibility
36
34
} ;
37
35
38
36
function isSentryInitialized ( ) {
You can’t perform that action at this time.
0 commit comments