File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ export class BrowserExceptionlessClient extends ExceptionlessClient {
20
20
config . addPlugin ( new BrowserModuleInfoPlugin ( ) ) ;
21
21
config . addPlugin ( new BrowserRequestInfoPlugin ( ) ) ;
22
22
config . addPlugin ( new BrowserWrapFunctions ( ) ) ;
23
-
24
- config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
25
23
config . addPlugin ( new BrowserErrorPlugin ( ) ) ;
26
24
}
27
25
28
26
await super . startup ( configurationOrApiKey ) ;
27
+ if ( configurationOrApiKey ) {
28
+ config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
29
+ }
29
30
}
30
31
}
Original file line number Diff line number Diff line change @@ -38,11 +38,13 @@ export class NodeExceptionlessClient extends ExceptionlessClient {
38
38
config . addPlugin ( new NodeLifeCyclePlugin ( ) ) ;
39
39
config . addPlugin ( new NodeRequestInfoPlugin ( ) ) ;
40
40
config . addPlugin ( new NodeWrapFunctions ( ) ) ;
41
-
42
- config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
43
41
config . addPlugin ( new NodeErrorPlugin ( ) ) ;
44
42
}
45
43
46
44
await super . startup ( configurationOrApiKey ) ;
45
+
46
+ if ( configurationOrApiKey ) {
47
+ config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
48
+ }
47
49
}
48
50
}
You can’t perform that action at this time.
0 commit comments