Merge pull request #694 from bitwarden/hotfix/only-change-socketroot-on-mac
This commit is contained in:
commit
e09697cd61
|
@ -17,7 +17,9 @@ export class NativeMessagingMain {
|
||||||
listen() {
|
listen() {
|
||||||
ipc.config.id = 'bitwarden';
|
ipc.config.id = 'bitwarden';
|
||||||
ipc.config.retry = 1500;
|
ipc.config.retry = 1500;
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
||||||
|
}
|
||||||
|
|
||||||
ipc.serve(() => {
|
ipc.serve(() => {
|
||||||
ipc.server.on('message', (data: any, socket: any) => {
|
ipc.server.on('message', (data: any, socket: any) => {
|
||||||
|
|
|
@ -6,7 +6,9 @@ import * as path from 'path';
|
||||||
ipc.config.id = 'proxy';
|
ipc.config.id = 'proxy';
|
||||||
ipc.config.retry = 1500;
|
ipc.config.retry = 1500;
|
||||||
ipc.config.logger = console.warn; // Stdout is used for native messaging
|
ipc.config.logger = console.warn; // Stdout is used for native messaging
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
||||||
|
}
|
||||||
|
|
||||||
export default class IPC {
|
export default class IPC {
|
||||||
onMessage: (message: object) => void
|
onMessage: (message: object) => void
|
||||||
|
|
Loading…
Reference in New Issue