8000 [mv3] Minor changes to account for Edge build · gorhill/uBlock@94db43c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 94db43c

Browse files
committed
[mv3] Minor changes to account for Edge build
1 parent e102a5e commit 94db43c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platform/mv3/make-rulesets.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ const rulesetDir = `${outputDir}/rulesets`;
6464
const scriptletDir = `${rulesetDir}/scripting`;
6565
const env = [
6666
platform,
67+
'native_css_has',
6768
'mv3',
6869
'ublock',
6970
'ubol',
7071
'user_stylesheet',
7172
];
7273

73-
if ( platform !== 'firefox' ) {
74-
env.push('native_css_has');
74+
if ( platform === 'edge' ) {
75+
env.push('chromium');
7576
}
7677

7778
/******************************************************************************/
@@ -1572,7 +1573,7 @@ async function main() {
15721573
resources: Array.from(requiredRedirectResources).map(path => `/${path}`),
15731574
matches: [ '<all_urls>' ],
15741575
};
1575-
if ( platform === 'chromium' ) {
1576+
if ( env.includes('chromium') ) {
15761577
web_accessible_resources.use_dynamic_url = true;
15771578
}
15781579
manifest.web_accessible_resources.push(web_accessible_resources);

0 commit comments

Comments
 (0)
0