adapt manifest background for firefox
This commit is contained in:
+12
-1
@@ -116,6 +116,17 @@ const config = {
|
||||
jsonContent.browser_specific_settings.gecko.id = geckoId.replace('@', '-beta@');
|
||||
}
|
||||
|
||||
if (process.env.FIREFOX) {
|
||||
jsonContent.background = {
|
||||
"scripts": ["background.js"]
|
||||
}
|
||||
} else { // CHROME
|
||||
jsonContent.background = {
|
||||
"service_worker": "background.js",
|
||||
"type": "module"
|
||||
}
|
||||
}
|
||||
|
||||
if (process.env.LITE) {
|
||||
// Remove "All sites" permissions
|
||||
const PERMISSIONS_TO_REMOVE = [
|
||||
@@ -190,4 +201,4 @@ if (config.mode === 'production') {
|
||||
config.devtool="cheap-source-map";
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user