[mv3] Minor changes to account for Edge build

This commit is contained in:
Raymond Hill 2025-03-08 11:31:31 -05:00
parent e102a5ee06
commit 94db43c4ad
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -64,14 +64,15 @@ const rulesetDir = `${outputDir}/rulesets`;
const scriptletDir = `${rulesetDir}/scripting`;
const env = [
platform,
'native_css_has',
'mv3',
'ublock',
'ubol',
'user_stylesheet',
];
if ( platform !== 'firefox' ) {
env.push('native_css_has');
if ( platform === 'edge' ) {
env.push('chromium');
}
/******************************************************************************/
@ -1572,7 +1573,7 @@ async function main() {
resources: Array.from(requiredRedirectResources).map(path => `/${path}`),
matches: [ '<all_urls>' ],
};
if ( platform === 'chromium' ) {
if ( env.includes('chromium') ) {
web_accessible_resources.use_dynamic_url = true;
}
manifest.web_accessible_resources.push(web_accessible_resources);