mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-28 12:35:40 +01:00
Merge pull request #798 from bitwarden/hotfix/native-messaging-mac
Resolve browser biometrics not working for some
This commit is contained in:
commit
fc7a968b0c
@ -14,10 +14,13 @@ export class NativeMessagingMain {
|
|||||||
|
|
||||||
constructor(private logService: LogService, private windowMain: WindowMain, private userPath: string, private appPath: string) {}
|
constructor(private logService: LogService, private windowMain: WindowMain, private userPath: string, private appPath: string) {}
|
||||||
|
|
||||||
listen() {
|
async listen() {
|
||||||
ipc.config.id = 'bitwarden';
|
ipc.config.id = 'bitwarden';
|
||||||
ipc.config.retry = 1500;
|
ipc.config.retry = 1500;
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
|
if (!existsSync(`${homedir()}/tmp`)) {
|
||||||
|
await fs.mkdir(`${homedir()}/tmp`);
|
||||||
|
}
|
||||||
ipc.config.socketRoot = `${homedir()}/tmp/`;
|
ipc.config.socketRoot = `${homedir()}/tmp/`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,8 +166,10 @@ export class NativeMessagingMain {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private writeManifest(destination: string, manifest: object) {
|
private async writeManifest(destination: string, manifest: object) {
|
||||||
fs.mkdir(path.dirname(destination));
|
if (!existsSync(path.dirname(destination))) {
|
||||||
|
await fs.mkdir(path.dirname(destination));
|
||||||
|
}
|
||||||
fs.writeFile(destination, JSON.stringify(manifest, null, 2)).catch(this.logService.error);
|
fs.writeFile(destination, JSON.stringify(manifest, null, 2)).catch(this.logService.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user