mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Wire up desktop -> browser communication. Add initial biometry support for browser integration
This commit is contained in:
@@ -7,6 +7,7 @@ ipc.config.logger = console.warn; // Stdout is used for native messaging
|
||||
|
||||
export default class IPC {
|
||||
private connected = false;
|
||||
public onMessage: (message: object) => void
|
||||
|
||||
connect() {
|
||||
ipc.connectTo('bitwarden', () => {
|
||||
@@ -24,8 +25,8 @@ export default class IPC {
|
||||
console.error('disconnected from world');
|
||||
});
|
||||
|
||||
ipc.of.bitwarden.on('message', (data: any) => {
|
||||
console.error('got a message from world : ', data);
|
||||
ipc.of.bitwarden.on('message', (message: any) => {
|
||||
this.onMessage(message);
|
||||
});
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user