Skip to content

Commit

Permalink
native-messaging: Add chromium support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyao2015 committed Sep 25, 2024
1 parent e6c3de9 commit 77e9f9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/desktop/src/main/native-messaging.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ export class NativeMessagingMain {
chromeJson,
);
}

if (existsSync(`${this.homedir()}/.config/chromium/`)) {
await this.writeManifest(

Check warning on line 216 in apps/desktop/src/main/native-messaging.main.ts

View check run for this annotation

Codecov / codecov/patch

apps/desktop/src/main/native-messaging.main.ts#L216

Added line #L216 was not covered by tests
`${this.homedir()}/.config/chromium/NativeMessagingHosts/com.8bit.bitwarden.json`,
chromeJson,
);
}
break;
default:
break;
Expand Down

0 comments on commit 77e9f9a

Please sign in to comment.