@@ -328,7 +328,7 @@ class Instrumenter {
328328 headers [ h ] = xhr . getResponseHeader ( h ) ;
329329 }
330330 }
331- } catch ( e ) {
331+ } catch ( _e ) {
332332 /* we ignore the errors here that could come from different
333333 * browser issues with the xhr methods */
334334 }
@@ -337,7 +337,7 @@ class Instrumenter {
337337 if ( self . autoInstrument . networkResponseBody ) {
338338 try {
339339 body = xhr . responseText ;
340- } catch ( e ) {
340+ } catch ( _e ) {
341341 /* ignore errors from reading responseText */
342342 }
343343 }
@@ -374,7 +374,7 @@ class Instrumenter {
374374 xhr . __rollbar_event . level =
375375 self . telemeter . levelFromStatus ( code ) ;
376376 self . errorOnHttpStatus ( xhr . __rollbar_xhr ) ;
377- } catch ( e ) {
377+ } catch ( _e ) {
378378 /* ignore possible exception from xhr.status */
379379 }
380380 }
@@ -415,7 +415,7 @@ class Instrumenter {
415415 this . _window ,
416416 'fetch' ,
417417 function ( orig ) {
418- return function ( fn , t ) {
418+ return function ( _fn , _t ) {
419419 const args = [ ...arguments ] ;
420420 const input = args [ 0 ] ;
421421 let method = 'GET' ;
@@ -586,7 +586,7 @@ class Instrumenter {
586586 outHeaders [ h ] = inHeaders . get ( h ) ;
587587 }
588588 }
589- } catch ( e ) {
589+ } catch ( _e ) {
590590 /* ignore probable IE errors */
591591 }
592592 return outHeaders ;
@@ -662,7 +662,6 @@ class Instrumenter {
662662 }
663663
664664 instrumentDom ( ) {
665- const self = this ;
666665 this . addListener (
667666 'dom' ,
668667 this . _window ,
@@ -708,8 +707,8 @@ class Instrumenter {
708707 }
709708 }
710709
711- handleContentLoaded ( evt ) {
712- const replayId = this . rollbar . triggerReplay ( {
710+ handleContentLoaded ( _evt ) {
711+ this . rollbar . triggerReplay ( {
713712 type : 'navigation' ,
714713 path : new URL ( this . _location . href ) . pathname ,
715714 } ) ;
@@ -741,12 +740,12 @@ class Instrumenter {
741740 } ) ;
742741 }
743742
744- handleForm ( evt ) {
743+ handleForm ( _evt ) {
745744 // TODO: implement form event handling
746- const type = evt . type ;
747- const elementString = evt . target ?. window
748- ? 'window'
749- : domUtil . elementString ( evt . target ) ;
745+ // const type = evt.type;
746+ // const elementString = evt.target?.window
747+ // ? 'window'
748+ // : domUtil.elementString(evt.target);
750749 }
751750
752751 handleResize ( evt ) {
@@ -958,7 +957,7 @@ class Instrumenter {
958957 from = parsedFrom . path + ( parsedFrom . hash || '' ) ;
959958 }
960959 this . telemeter . captureNavigation ( from , to , null , _ . now ( ) ) ;
961- const replayId = this . rollbar . triggerReplay ( {
960+ this . rollbar . triggerReplay ( {
962961 type : 'navigation' ,
963962 path : to ,
964963 } ) ;
0 commit comments