1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-12-01 13:04:03 +01:00
bitwarden-desktop/proxy/app.ts

25 lines
491 B
TypeScript
Raw Normal View History

import NativeMessage from './nativemessage';
import IPC from './ipc';
const args = process.argv.slice(2);
class Proxy {
2020-10-12 18:03:16 +02:00
private ipc: IPC;
private nativeMessage: NativeMessage;
constructor() {
this.ipc = new IPC();
this.nativeMessage = new NativeMessage(this.ipc);
}
run() {
this.ipc.connect();
this.nativeMessage.listen();
this.ipc.onMessage = this.nativeMessage.send;
}
}
const proxy = new Proxy();
proxy.run();