Commit 15c04f3 1 parent 49e15b9 commit 15c04f3 Copy full SHA for 15c04f3
File tree 1 file changed +3
-3
lines changed
packages/tswebextension/src/lib/common
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ export class CosmeticApiCommon {
204
204
* @returns Modified rule with injected content marker into stylesheet.
205
205
*/
206
206
private static addMarkerToInjectRule ( rule : CosmeticRule ) : string {
207
- const result = [ ] ;
207
+ const result : string [ ] = [ ] ;
208
208
const ruleContent = rule . getContent ( ) ;
209
209
// if rule text has content attribute we don't add rule marker
210
210
if ( CosmeticApiCommon . CONTENT_ATTR_RE . test ( ruleContent ) ) {
@@ -219,9 +219,9 @@ export class CosmeticApiCommon {
219
219
: `${ ruleTextWithoutCloseBrace } ${ SEMICOLON } ` ;
220
220
result . push ( ruleTextWithSemicolon ) ;
221
221
result . push ( CosmeticApiCommon . INJECT_HIT_START ) ;
222
- result . push ( rule . getFilterListId ( ) ) ;
222
+ result . push ( String ( rule . getFilterListId ( ) ) ) ;
223
223
result . push ( CosmeticApiCommon . HIT_SEP ) ;
224
- result . push ( rule . getIndex ( ) ) ;
224
+ result . push ( String ( rule . getIndex ( ) ) ) ;
225
225
result . push ( CosmeticApiCommon . HIT_END ) ;
226
226
227
227
return result . join ( '' ) ;
You can’t perform that action at this time.
0 commit comments