Fix linting errors

This commit is contained in:
Hinton 2020-10-11 20:45:25 +02:00
parent 01ffa27fcc
commit 5eb0ce1e09
4 changed files with 8 additions and 8 deletions

View File

@ -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();

View File

@ -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');
});
}

View File

@ -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) {

View File

@ -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';