File tree 1 file changed +5
-2
lines changed
lighthouse-core/report/html/renderer
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,8 @@ class ReportUIFeatures {
158
158
const id = `lh-3p-filter-label--${ index } ` ;
159
159
filterTemplate . querySelector ( 'label' ) . setAttribute ( 'for' , id ) ;
160
160
filterInput . setAttribute ( 'id' , id ) ;
161
- filterTemplate . querySelector ( '.lh-3p-filter-count' ) . innerHTML = Object . keys ( thirdPartyRows ) . length ;
161
+ filterTemplate . querySelector ( '.lh-3p-filter-count' ) . innerHTML =
162
+ Object . keys ( thirdPartyRows ) . length ;
162
163
163
164
filterInput . addEventListener ( 'change' , e => {
164
165
// remove elements from the dom and keep track of them to readd on uncheck
@@ -167,10 +168,12 @@ class ReportUIFeatures {
167
168
Object . keys ( thirdPartyRows ) . forEach ( position => {
168
169
const row = thirdPartyRows [ position ] ;
169
170
171
+ // eslint-disable-next-line eqeqeq
170
172
if ( position == 0 ) {
171
173
el . tBodies [ 0 ] . appendChild ( row ) ;
172
174
} else {
173
- Array . from ( el . tBodies [ 0 ] . children ) [ Number ( position ) - 1 ] . insertAdjacentElement ( 'afterend' , row ) ;
175
+ Array . from ( el . tBodies [ 0 ] . children ) [ Number ( position ) - 1 ]
176
+ . insertAdjacentElement ( 'afterend' , row ) ;
174
177
}
175
178
} ) ;
176
179
} else {
You can’t perform that action at this time.
0 commit comments