@@ -31,16 +31,15 @@ export class DOMInjectionManager {
3131 handler : this . handleScopeActions . bind ( this ) ,
3232 } ,
3333 {
34- selector :
35- 'div.c-card__header:has(span.fa-undo)' ,
34+ selector : "div.c-card__header:has(span.fa-undo)" ,
3635 locationCondition : "#/tamper" ,
3736 handler : this . handleTamperActions . bind ( this ) ,
38- } ,
37+ } ,
3938 {
4039 selector : ".c-card__header" ,
4140 locationCondition : "(#/http-history|#/search)" ,
4241 handler : this . handleHttpHistoryActions . bind ( this ) ,
43- }
42+ } ,
4443 ] ;
4544 }
4645
@@ -64,8 +63,12 @@ export class DOMInjectionManager {
6463 }
6564
6665 private checkForInjectionPoints ( ) {
67- for ( const { selector, handler, locationCondition } of this . injectionHandlers ) {
68- if ( locationCondition && ! window . location . hash . match ( new RegExp ( locationCondition ) ) ) {
66+ for ( const { selector, handler, locationCondition } of this
67+ . injectionHandlers ) {
68+ if (
69+ locationCondition &&
70+ ! window . location . hash . match ( new RegExp ( locationCondition ) )
71+ ) {
6972 continue ;
7073 }
7174
@@ -76,10 +79,7 @@ export class DOMInjectionManager {
7679 }
7780 }
7881
79- private generateButton (
80- container : Element ,
81- customClasses ?: string ,
82- ) {
82+ private generateButton ( container : Element , customClasses ?: string ) {
8383 // Create the button container
8484 const buttonContainer = document . createElement ( "div" ) ;
8585 buttonContainer . className =
0 commit comments