mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-06 18:57:56 +01:00
Fix firefox manifest, use correct application executable.
This commit is contained in:
parent
51b749b1dc
commit
5b0b07f812
@ -62,7 +62,7 @@ export class NativeMessagingMain {
|
|||||||
'type': 'stdio',
|
'type': 'stdio',
|
||||||
}
|
}
|
||||||
|
|
||||||
const firefoxJson = {...baseJson, ...{ 'allowed_origins': ['446900e4-71c2-419f-a6a7-df9c091e268b']}}
|
const firefoxJson = {...baseJson, ...{ 'allowed_extensions': ['{446900e4-71c2-419f-a6a7-df9c091e268b}']}}
|
||||||
const chromeJson = {...baseJson, ...{ 'allowed_origins': ['chrome-extension://ijeheppnniijonkinoakkofcdhdfojda/']}}
|
const chromeJson = {...baseJson, ...{ 'allowed_origins': ['chrome-extension://ijeheppnniijonkinoakkofcdhdfojda/']}}
|
||||||
|
|
||||||
if (!existsSync(path.join(this.userPath, 'browsers'))) {
|
if (!existsSync(path.join(this.userPath, 'browsers'))) {
|
||||||
@ -140,15 +140,11 @@ export class NativeMessagingMain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private binaryName() {
|
private binaryName() {
|
||||||
switch (process.platform) {
|
if (process.platform === 'win32') {
|
||||||
case 'win32':
|
return 'proxy.exe';
|
||||||
return 'app-win.exe'
|
|
||||||
case 'darwin':
|
|
||||||
return 'app-linux'
|
|
||||||
case 'linux':
|
|
||||||
default:
|
|
||||||
return 'app-macos'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 'proxy';
|
||||||
}
|
}
|
||||||
|
|
||||||
private async createWindowsRegistry(check: string, location: string, jsonFile: string) {
|
private async createWindowsRegistry(check: string, location: string, jsonFile: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user