Fix linting errors
This commit is contained in:
parent
01ffa27fcc
commit
5eb0ce1e09
|
@ -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();
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue