mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
Merge pull request #757 from aimuz/patch-1
fix: Edge supported by biometrics
This commit is contained in:
commit
96e8d712ce
@ -12,6 +12,7 @@
|
|||||||
<array>
|
<array>
|
||||||
<string>/Library/Application Support/Mozilla/NativeMessagingHosts/</string>
|
<string>/Library/Application Support/Mozilla/NativeMessagingHosts/</string>
|
||||||
<string>/Library/Application Support/Google/Chrome/NativeMessagingHosts/</string>
|
<string>/Library/Application Support/Google/Chrome/NativeMessagingHosts/</string>
|
||||||
|
<string>/Library/Application Support/Microsoft Edge/NativeMessagingHosts/</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
@ -98,6 +98,12 @@ export class NativeMessagingMain {
|
|||||||
} else {
|
} else {
|
||||||
this.logService.warning(`Chrome not found skipping.`);
|
this.logService.warning(`Chrome not found skipping.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (existsSync(`${this.homedir()}/Library/Application\ Support/Microsoft\ Edge/NativeMessagingHosts`)) {
|
||||||
|
this.writeManifest(`${this.homedir()}/Library/Application\ Support/Microsoft\ Edge/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson);
|
||||||
|
} else {
|
||||||
|
this.logService.warning(`Microsoft Edge not found skipping.`);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'linux':
|
case 'linux':
|
||||||
if (existsSync(`${this.homedir()}/.mozilla/`)) {
|
if (existsSync(`${this.homedir()}/.mozilla/`)) {
|
||||||
@ -107,6 +113,10 @@ export class NativeMessagingMain {
|
|||||||
if (existsSync(`${this.homedir()}/.config/google-chrome/`)) {
|
if (existsSync(`${this.homedir()}/.config/google-chrome/`)) {
|
||||||
this.writeManifest(`${this.homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson);
|
this.writeManifest(`${this.homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (existsSync(`${this.homedir()}/.config/microsoft-edge/`)) {
|
||||||
|
this.writeManifest(`${this.homedir()}/.config/microsoft-edge/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -127,7 +137,11 @@ export class NativeMessagingMain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (existsSync(`${this.homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.8bit.bitwarden.json`)) {
|
if (existsSync(`${this.homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.8bit.bitwarden.json`)) {
|
||||||
fs.unlink(`${this.homedir()}/Library/Application\ Support/Mozilla/NativeMessagingHosts/com.8bit.bitwarden.json`);
|
fs.unlink(`${this.homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.8bit.bitwarden.json`);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (existsSync(`${this.homedir()}/Library/Application\ Support/Microsoft\ Edge/NativeMessagingHosts/com.8bit.bitwarden.json`)) {
|
||||||
|
fs.unlink(`${this.homedir()}/Library/Application\ Support/Microsoft\ Edge/NativeMessagingHosts/com.8bit.bitwarden.json`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'linux':
|
case 'linux':
|
||||||
@ -138,6 +152,10 @@ export class NativeMessagingMain {
|
|||||||
if (existsSync(`${this.homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`)) {
|
if (existsSync(`${this.homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`)) {
|
||||||
fs.unlink(`${this.homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`);
|
fs.unlink(`${this.homedir()}/.config/google-chrome/NativeMessagingHosts/com.8bit.bitwarden.json`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (existsSync(`${this.homedir()}/.config/microsoft-edge/NativeMessagingHosts/com.8bit.bitwarden.json`)) {
|
||||||
|
fs.unlink(`${this.homedir()}/.config/microsoft-edge/NativeMessagingHosts/com.8bit.bitwarden.json`);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user