1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

Add connected/disconnected calls in proxy application

This commit is contained in:
Hinton 2020-10-21 15:56:27 +02:00
parent a6563e7de2
commit 9ff0f204d8
3 changed files with 3 additions and 2 deletions

View File

@ -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) => {

View File

@ -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,

View File

@ -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);
}