mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-28 12:35:40 +01:00
Fix linting errors
This commit is contained in:
parent
ed0acdead2
commit
28943f4bc1
@ -30,7 +30,7 @@ export class MessagingMain {
|
|||||||
case 'minimizeOnCopy':
|
case 'minimizeOnCopy':
|
||||||
this.storageService.get<boolean>(ElectronConstants.minimizeOnCopyToClipboardKey).then(
|
this.storageService.get<boolean>(ElectronConstants.minimizeOnCopyToClipboardKey).then(
|
||||||
(shouldMinimize) => {
|
(shouldMinimize) => {
|
||||||
if (shouldMinimize && this.main.windowMain.win != null) {
|
if (shouldMinimize && this.main.windowMain.win !== null) {
|
||||||
this.main.windowMain.win.minimize();
|
this.main.windowMain.win.minimize();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -17,7 +17,7 @@ export class NativeMessagingProxy {
|
|||||||
run() {
|
run() {
|
||||||
this.ipc.connect();
|
this.ipc.connect();
|
||||||
this.nativeMessage.listen();
|
this.nativeMessage.listen();
|
||||||
|
|
||||||
this.ipc.onMessage = this.nativeMessage.send;
|
this.ipc.onMessage = this.nativeMessage.send;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,10 +29,10 @@ export class NativeMessagingService {
|
|||||||
private async messageHandler(rawMessage: any) {
|
private async messageHandler(rawMessage: any) {
|
||||||
|
|
||||||
// Request to setup secure encryption
|
// Request to setup secure encryption
|
||||||
if (rawMessage.command == 'setupEncryption') {
|
if (rawMessage.command === 'setupEncryption') {
|
||||||
const remotePublicKey = Utils.fromB64ToArray(rawMessage.publicKey).buffer;
|
const remotePublicKey = Utils.fromB64ToArray(rawMessage.publicKey).buffer;
|
||||||
const fingerprint = (await this.cryptoService.getFingerprint(await this.userService.getUserId(), remotePublicKey)).join(' ');
|
const fingerprint = (await this.cryptoService.getFingerprint(await this.userService.getUserId(), remotePublicKey)).join(' ');
|
||||||
|
|
||||||
this.messagingService.send('setFocus');
|
this.messagingService.send('setFocus');
|
||||||
|
|
||||||
// Await confirmation that fingerprint is correct
|
// Await confirmation that fingerprint is correct
|
||||||
@ -45,11 +45,11 @@ export class NativeMessagingService {
|
|||||||
confirmButtonText: this.i18nService.t('approve'),
|
confirmButtonText: this.i18nService.t('approve'),
|
||||||
allowOutsideClick: false,
|
allowOutsideClick: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (submitted.value !== true) {
|
if (submitted.value !== true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.secureCommunication(remotePublicKey);
|
this.secureCommunication(remotePublicKey);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user