1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

Add trailing slash to ipc.config.socketRoot. (#695)

This commit is contained in:
Oscar Hinton 2021-01-26 22:32:25 +01:00 committed by GitHub
parent 644e58463b
commit c09ba7051f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export class NativeMessagingMain {
ipc.config.id = 'bitwarden';
ipc.config.retry = 1500;
if (process.platform === 'darwin') {
ipc.config.socketRoot = path.join(homedir(), 'tmp');
ipc.config.socketRoot = `${homedir()}/tmp/`;
}
ipc.serve(() => {

View File

@ -1,13 +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
if (process.platform === 'darwin') {
ipc.config.socketRoot = path.join(homedir(), 'tmp');
ipc.config.socketRoot = `${homedir()}/tmp/`;
}
export default class IPC {