mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
Remove biometric from firefox
This commit is contained in:
12
gulpfile.js
12
gulpfile.js
@@ -65,6 +65,7 @@ function dist(browserName, manifest) {
|
||||
function distFirefox() {
|
||||
return dist('firefox', (manifest) => {
|
||||
delete manifest.content_security_policy;
|
||||
delete manifest.optional_permissions;
|
||||
removeShortcuts(manifest);
|
||||
return manifest;
|
||||
});
|
||||
@@ -75,7 +76,6 @@ function distOpera() {
|
||||
delete manifest.applications;
|
||||
delete manifest.content_security_policy;
|
||||
removeShortcuts(manifest);
|
||||
moveNativeMessagingToOptional(manifest);
|
||||
return manifest;
|
||||
});
|
||||
}
|
||||
@@ -86,7 +86,6 @@ function distChrome() {
|
||||
delete manifest.content_security_policy;
|
||||
delete manifest.sidebar_action;
|
||||
delete manifest.commands._execute_sidebar_action;
|
||||
moveNativeMessagingToOptional(manifest);
|
||||
return manifest;
|
||||
});
|
||||
}
|
||||
@@ -97,7 +96,6 @@ function distEdge() {
|
||||
delete manifest.content_security_policy;
|
||||
delete manifest.sidebar_action;
|
||||
delete manifest.commands._execute_sidebar_action;
|
||||
moveNativeMessagingToOptional(manifest);
|
||||
return manifest;
|
||||
});
|
||||
}
|
||||
@@ -111,14 +109,6 @@ function removeShortcuts(manifest) {
|
||||
}
|
||||
}
|
||||
|
||||
function moveNativeMessagingToOptional(manifest) {
|
||||
const index = manifest.permissions.indexOf("nativeMessaging");
|
||||
index > -1 ? manifest.permissions.splice(index, 1) : false
|
||||
manifest.optional_permissions = [
|
||||
"nativeMessaging"
|
||||
];
|
||||
}
|
||||
|
||||
function distSafariMas(cb) {
|
||||
return distSafariApp(cb, 'mas');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user