File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 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 {
2020 config . addPlugin ( new BrowserModuleInfoPlugin ( ) ) ;
2121 config . addPlugin ( new BrowserRequestInfoPlugin ( ) ) ;
2222 config . addPlugin ( new BrowserWrapFunctions ( ) ) ;
23-
24- config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
2523 config . addPlugin ( new BrowserErrorPlugin ( ) ) ;
2624 }
2725
2826 await super . startup ( configurationOrApiKey ) ;
27+ if ( configurationOrApiKey ) {
28+ config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
29+ }
2930 }
3031}
Original file line number Diff line number Diff line change @@ -38,11 +38,13 @@ export class NodeExceptionlessClient extends ExceptionlessClient {
3838 config . addPlugin ( new NodeLifeCyclePlugin ( ) ) ;
3939 config . addPlugin ( new NodeRequestInfoPlugin ( ) ) ;
4040 config . addPlugin ( new NodeWrapFunctions ( ) ) ;
41-
42- config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
4341 config . addPlugin ( new NodeErrorPlugin ( ) ) ;
4442 }
4543
4644 await super . startup ( configurationOrApiKey ) ;
45+
46+ if ( configurationOrApiKey ) {
47+ config . removePlugin ( new SimpleErrorPlugin ( ) ) ;
48+ }
4749 }
4850}
You can’t perform that action at this time.
0 commit comments