Skip to content

Commit

Permalink
[mv3] Support conditional env_mv3 directive to parser
Browse files Browse the repository at this point in the history
Related issue:
- uBlockOrigin/uBOL-home#1
  • Loading branch information
gorhill committed Oct 11, 2022
1 parent da6d17c commit 873c2e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions platform/mv3/make-rulesets.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const rulesetDir = `${outputDir}/rulesets`;
const scriptletDir = `${rulesetDir}/js`;
const env = [
'chromium',
'mv3',
'native_css_has',
'ublock',
'ubol',
Expand Down
1 change: 1 addition & 0 deletions src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3147,6 +3147,7 @@ Parser.utils = Parser.prototype.utils = (( ) => {
[ 'env_firefox', 'firefox' ],
[ 'env_legacy', 'legacy' ],
[ 'env_mobile', 'mobile' ],
[ 'env_mv3', 'mv3' ],
[ 'env_safari', 'safari' ],
[ 'cap_html_filtering', 'html_filtering' ],
[ 'cap_user_stylesheet', 'user_stylesheet' ],
Expand Down

0 comments on commit 873c2e7

Please sign in to comment.