native-messaging: Add chromium support (#11230)

This commit is contained in:
Alex Yao 2024-10-01 12:40:28 -05:00 committed by GitHub
parent f8ccf0cfb8
commit 256c6aef5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -201,6 +201,13 @@ export class NativeMessagingMain {
chromeJson,
);
}
if (existsSync(`${this.homedir()}/.config/chromium/`)) {
await this.writeManifest(
`${this.homedir()}/.config/chromium/NativeMessagingHosts/com.8bit.bitwarden.json`,
chromeJson,
);
}
break;
default:
break;