Skip to content

Commit

Permalink
[SG-569] Native Messaging settings bug (#3285)
Browse files Browse the repository at this point in the history
* Fix bug where updating setting wasn't starting the native messaging listener

* Update test runner error message
  • Loading branch information
differsthecat authored Aug 15, 2022
1 parent 77fa364 commit 0b7c93d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/desktop/native-messaging-test-runner/src/test-ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export default class TestIPC {

ipc.of.bitwarden.on("error", (err: any) => {
console.error("error", err);
console.log("\x1b[33m Please make sure the desktop app is running locally \x1b[0m");
console.log(
"\x1b[33m Please make sure the desktop app is running locally and 'Allow DuckDuckGo browser integration' setting is enabled \x1b[0m"
);
});

ipc.of.bitwarden.on("disconnect", () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/app/accounts/settings.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export class SettingsComponent implements OnInit {
this.enableDuckDuckGoBrowserIntegration
);
this.messagingService.send(
this.enableBrowserIntegration
this.enableDuckDuckGoBrowserIntegration
? "enableDuckDuckGoBrowserIntegration"
: "disableDuckDuckGoBrowserIntegration"
);
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class Main {

if (
(await this.stateService.getEnableBrowserIntegration()) ||
this.stateService.getEnableDuckDuckGoBrowserIntegration()
(await this.stateService.getEnableDuckDuckGoBrowserIntegration())
) {
this.nativeMessagingMain.listen();
}
Expand Down

0 comments on commit 0b7c93d

Please sign in to comment.