1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[PS-1184] Remove specific keyboard shortcut logic (#3173)

* Removed logic for keyboard shortcuts specific to Vivaldi

* Removed shortcut.ts and related parts

* Removed dependency on mousetrap

* Safari: Remove sidebar_action and_execute_sidebar_action from manifest.json

* Rebuilt package-lock.json

* Fixed merge issue from pulling master
This commit is contained in:
Daniel James Smith
2022-09-08 14:48:45 +02:00
committed by GitHub
parent 3b69a60511
commit 28f8f245d9
8 changed files with 4 additions and 108 deletions

View File

@@ -61,7 +61,6 @@ function distFirefox() {
return dist("firefox", (manifest) => {
delete manifest.content_security_policy;
delete manifest.storage;
removeShortcuts(manifest);
return manifest;
});
}
@@ -70,7 +69,6 @@ function distOpera() {
return dist("opera", (manifest) => {
delete manifest.applications;
delete manifest.content_security_policy;
removeShortcuts(manifest);
return manifest;
});
}
@@ -95,15 +93,6 @@ function distEdge() {
});
}
function removeShortcuts(manifest) {
if (manifest.content_scripts && manifest.content_scripts.length > 1) {
const shortcutsScript = manifest.content_scripts[1];
if (shortcutsScript.js.indexOf("content/shortcuts.js") > -1) {
manifest.content_scripts.splice(1, 1);
}
}
}
function distSafariMas(cb) {
return distSafariApp(cb, "mas");
}
@@ -212,6 +201,8 @@ function safariCopyBuild(source, dest) {
gulpif(
"manifest.json",
jeditor((manifest) => {
delete manifest.sidebar_action;
delete manifest.commands._execute_sidebar_action;
delete manifest.optional_permissions;
manifest.permissions.push("nativeMessaging");
return manifest;