Skip to content

Commit

Permalink
fix: CosmeticFilter.toString() ignoring custom style (#4505)
Browse files Browse the repository at this point in the history
  • Loading branch information
seia-soto authored Dec 9, 2024
1 parent ad32b49 commit 76dec35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/adblocker/src/filters/cosmetic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,10 @@ export default class CosmeticFilter implements IFilter {
filter += this.selector;
}

if (this.hasCustomStyle()) {
filter += ':style(' + this.getStyle() + ')';
}

return filter;
}

Expand Down

0 comments on commit 76dec35

Please sign in to comment.