mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-24 11:55:50 +01:00
Adding regedit to src/package.json
This commit is contained in:
parent
345188ed99
commit
8d9698101d
@ -80,25 +80,25 @@ export class NativeMessagingMain {
|
|||||||
this.writeManifest(path.join(destination, 'firefox.json'), firefoxJson);
|
this.writeManifest(path.join(destination, 'firefox.json'), firefoxJson);
|
||||||
this.writeManifest(path.join(destination, 'chrome.json'), chromeJson);
|
this.writeManifest(path.join(destination, 'chrome.json'), chromeJson);
|
||||||
|
|
||||||
this.createWindowsRegistry('HKLM\\SOFTWARE\\Mozilla\\Firefox', 'HKCU\\SOFTWARE\\Mozilla\\NativeMessagingHosts\\com.8bit.bitwarden', path.join(destination, 'firefox.json'))
|
this.createWindowsRegistry('HKLM\\SOFTWARE\\Mozilla\\Firefox', 'HKCU\\SOFTWARE\\Mozilla\\NativeMessagingHosts\\com.8bit.bitwarden', path.join(destination, 'firefox.json'));
|
||||||
this.createWindowsRegistry('HKCU\\SOFTWARE\\Google\\Chrome', 'HKCU\\SOFTWARE\\Google\\Chrome\\NativeMessagingHosts\\com.8bit.bitwarden', path.join(destination, 'chrome.json'))
|
this.createWindowsRegistry('HKCU\\SOFTWARE\\Google\\Chrome', 'HKCU\\SOFTWARE\\Google\\Chrome\\NativeMessagingHosts\\com.8bit.bitwarden', path.join(destination, 'chrome.json'));
|
||||||
break;
|
break;
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
if (existsSync(`${homedir()}/Library/Application\ Support/Mozilla/`)) {
|
if (existsSync(`${homedir()}/Library/Application\ Support/Mozilla/`)) {
|
||||||
this.writeManifest(`${homedir()}/Library/Application\ Support/Mozilla/NativeMessagingHosts/com.8bit.bitwarden.json`, firefoxJson)
|
this.writeManifest(`${homedir()}/Library/Application\ Support/Mozilla/NativeMessagingHosts/com.8bit.bitwarden.json`, firefoxJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (existsSync(`${homedir()}/Library/Application\ Support/Google/Chrome`)) {
|
if (existsSync(`${homedir()}/Library/Application\ Support/Google/Chrome`)) {
|
||||||
this.writeManifest(`${homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson)
|
this.writeManifest(`${homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'linux':
|
case 'linux':
|
||||||
if (existsSync(`${homedir()}/.mozilla/`)) {
|
if (existsSync(`${homedir()}/.mozilla/`)) {
|
||||||
this.writeManifest(`${homedir()}/.mozilla/native-messaging-hosts/com.8bit.bitwarden.json`, firefoxJson)
|
this.writeManifest(`${homedir()}/.mozilla/native-messaging-hosts/com.8bit.bitwarden.json`, firefoxJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (existsSync(`${homedir()}/.config/google-chrome/`)) {
|
if (existsSync(`${homedir()}/.config/google-chrome/`)) {
|
||||||
this.writeManifest(`${homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson)
|
this.writeManifest(`${homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -167,6 +167,7 @@ export class NativeMessagingMain {
|
|||||||
try {
|
try {
|
||||||
await list(check)
|
await list(check)
|
||||||
} catch {
|
} catch {
|
||||||
|
this.logService.warning(`Not finding registry ${check} skipping.`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
"forcefocus": "^1.1.0",
|
"forcefocus": "^1.1.0",
|
||||||
"keytar": "4.13.0",
|
"keytar": "4.13.0",
|
||||||
"node-ipc": "^9.1.1",
|
"node-ipc": "^9.1.1",
|
||||||
|
"regedit": "^3.0.3",
|
||||||
"zxcvbn": "4.4.2"
|
"zxcvbn": "4.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user