mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Minor cleanup
This commit is contained in:
@@ -4,8 +4,8 @@ import IPC from './ipc';
|
|||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
|
|
||||||
class Proxy {
|
class Proxy {
|
||||||
ipc: IPC;
|
private ipc: IPC;
|
||||||
nativeMessage: NativeMessage;
|
private nativeMessage: NativeMessage;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.ipc = new IPC();
|
this.ipc = new IPC();
|
||||||
|
|||||||
@@ -202,16 +202,15 @@ export class NativeMessagingService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const response = await this.biometricMain.requestCreate();
|
const response = await this.biometricMain.requestCreate();
|
||||||
|
|
||||||
if (response) {
|
if (response) {
|
||||||
this.send({command: 'biometricUnlock', response: 'unlocked'}, socket);
|
this.send({command: 'biometricUnlock', response: 'unlocked'}, socket);
|
||||||
} else {
|
} else {
|
||||||
this.send({command: 'biometricUnlock', response: 'canceled'}, socket);
|
this.send({command: 'biometricUnlock', response: 'canceled'}, socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.error("UNKNOWN COMMAND")
|
console.error('UNKNOWN COMMAND')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user