1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

Fix paths for native messaging on mac (#691)

This commit is contained in:
Oscar Hinton
2021-01-26 18:01:46 +01:00
committed by GitHub
parent 7126aeb0b2
commit d1011870f0
2 changed files with 34 additions and 18 deletions

View File

@@ -1,9 +1,12 @@
/* tslint:disable:no-console */
import * as ipc from 'node-ipc';
import { homedir } from 'os';
import * as path from 'path';
ipc.config.id = 'proxy';
ipc.config.retry = 1500;
ipc.config.logger = console.warn; // Stdout is used for native messaging
ipc.config.socketRoot = path.join(homedir(), 'tmp');
export default class IPC {
onMessage: (message: object) => void