1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

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

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