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:
parent
a6563e7de2
commit
9ff0f204d8
@ -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) => {
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user