diff --git a/src/main/messaging.main.ts b/src/main/messaging.main.ts index d8c1d0f0..5cfe87f6 100644 --- a/src/main/messaging.main.ts +++ b/src/main/messaging.main.ts @@ -30,7 +30,7 @@ export class MessagingMain { case 'minimizeOnCopy': this.storageService.get(ElectronConstants.minimizeOnCopyToClipboardKey).then( (shouldMinimize) => { - if (shouldMinimize && this.main.windowMain.win != null) { + if (shouldMinimize && this.main.windowMain.win !== null) { this.main.windowMain.win.minimize(); } }); diff --git a/src/proxy/native-messaging-proxy.ts b/src/proxy/native-messaging-proxy.ts index 59e96a25..f308016e 100644 --- a/src/proxy/native-messaging-proxy.ts +++ b/src/proxy/native-messaging-proxy.ts @@ -17,7 +17,7 @@ export class NativeMessagingProxy { run() { this.ipc.connect(); this.nativeMessage.listen(); - + this.ipc.onMessage = this.nativeMessage.send; } } diff --git a/src/services/nativeMessaging.service.ts b/src/services/nativeMessaging.service.ts index 4b3a5ced..a594c953 100644 --- a/src/services/nativeMessaging.service.ts +++ b/src/services/nativeMessaging.service.ts @@ -29,10 +29,10 @@ export class NativeMessagingService { private async messageHandler(rawMessage: any) { // Request to setup secure encryption - if (rawMessage.command == 'setupEncryption') { + if (rawMessage.command === 'setupEncryption') { const remotePublicKey = Utils.fromB64ToArray(rawMessage.publicKey).buffer; const fingerprint = (await this.cryptoService.getFingerprint(await this.userService.getUserId(), remotePublicKey)).join(' '); - + this.messagingService.send('setFocus'); // Await confirmation that fingerprint is correct @@ -45,11 +45,11 @@ export class NativeMessagingService { confirmButtonText: this.i18nService.t('approve'), allowOutsideClick: false, }); - + if (submitted.value !== true) { return; } - + this.secureCommunication(remotePublicKey); return; }