diff --git a/proxy/ipc.ts b/proxy/ipc.ts index 02de48d6..c0df5b15 100644 --- a/proxy/ipc.ts +++ b/proxy/ipc.ts @@ -17,11 +17,13 @@ export default class IPC { '## connected to bitwarden desktop ##', ipc.config.delay ); + this.onMessage({command: 'connected'}) }); ipc.of.bitwarden.on('disconnect', () => { this.connected = false; console.error('disconnected from world'); + this.onMessage({command: 'disconnected'}) }); ipc.of.bitwarden.on('message', (message: any) => { diff --git a/src/app/services.module.ts b/src/app/services.module.ts index 89ebe654..d966f338 100644 --- a/src/app/services.module.ts +++ b/src/app/services.module.ts @@ -95,7 +95,7 @@ const platformUtilsService = new ElectronPlatformUtilsService(i18nService, messa const secureStorageService: StorageServiceAbstraction = new ElectronRendererSecureStorageService(); const cryptoFunctionService: CryptoFunctionServiceAbstraction = new WebCryptoFunctionService(window, platformUtilsService); -const cryptoService = new CryptoService(storageService, secureStorageService, cryptoFunctionService); +const cryptoService = new CryptoService(storageService, secureStorageService, cryptoFunctionService, platformUtilsService); const tokenService = new TokenService(storageService); const appIdService = new AppIdService(storageService); const apiService = new ApiService(tokenService, platformUtilsService, diff --git a/src/main/nativeMessaging.main.ts b/src/main/nativeMessaging.main.ts index eca70e5d..087e59e8 100644 --- a/src/main/nativeMessaging.main.ts +++ b/src/main/nativeMessaging.main.ts @@ -87,7 +87,6 @@ export class NativeMessagingMain { } if (existsSync(`${homedir()}/Library/Application\ Support/Google/Chrome`)) { - console.log("FOUND CHROME"); fs.mkdir(`${homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/`); this.writeManifest(`${homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.8bit.bitwarden.json`, chromeJson); }