diff --git a/src/background/main.background.ts b/src/background/main.background.ts index c5a0cf0538..19758b9437 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -138,7 +138,7 @@ export default class MainBackground { private menuOptionsLoaded: any[] = []; private syncTimeout: any; private isSafari: boolean; - nativeMessagingBackground: NativeMessagingBackground; + private nativeMessagingBackground: NativeMessagingBackground; constructor() { this.nativeMessagingBackground = new NativeMessagingBackground(); diff --git a/src/background/nativeMessaging.background.ts b/src/background/nativeMessaging.background.ts index dbb673dc5f..30028acb8c 100644 --- a/src/background/nativeMessaging.background.ts +++ b/src/background/nativeMessaging.background.ts @@ -1,4 +1,4 @@ -import { BrowserApi } from "../browser/browserApi"; +import { BrowserApi } from '../browser/browserApi'; export class NativeMessagingBackground { private connected = false; @@ -7,19 +7,19 @@ export class NativeMessagingBackground { private resolver: any = null; connect() { - this.port = BrowserApi.connectNative("com.8bit.bitwarden"); + this.port = BrowserApi.connectNative('com.8bit.bitwarden'); this.connected = true; this.port.onMessage.addListener((msg: any) => { if (this.resolver) { this.resolver(msg); } else { + // tslint:disable-next-line console.error('NO RESOLVER'); } }); this.port.onDisconnect.addListener(() => { this.connected = false; - console.log('Disconnected'); }); } diff --git a/src/popup/settings/settings.component.ts b/src/popup/settings/settings.component.ts index bbdf30cdb3..6d1c06463b 100644 --- a/src/popup/settings/settings.component.ts +++ b/src/popup/settings/settings.component.ts @@ -227,8 +227,8 @@ export class SettingsComponent implements OnInit { this.biometric = await this.platformUtilsService.authenticateBiometric(); Swal.close(); - if (this.biometric == false) { - this.platformUtilsService.showToast("error", "Unable to enable biometrics", "Ensure the desktop application is running, and browser integration is enabled."); + if (this.biometric === false) { + this.platformUtilsService.showToast('error', 'Unable to enable biometrics', 'Ensure the desktop application is running, and browser integration is enabled.'); } } if (this.biometric === current) { diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index 63a549fcc2..fe7e14b799 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -299,9 +299,9 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService const response = await responsePromise; - return response.response == 'unlocked'; + return response.response === 'unlocked'; } - + sidebarViewName(): string { if ((window as any).chrome.sidebarAction && this.isFirefox()) { return 'sidebar';