1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-27 21:53:25 +00:00

BEEEP: Refactor services DI (#1175)

This commit is contained in:
Oscar Hinton
2021-12-06 11:03:02 +00:00
committed by GitHub
parent 00d57d0310
commit 04cfdb246d
13 changed files with 85 additions and 175 deletions

View File

@@ -1,3 +1,4 @@
import { Injectable } from '@angular/core';
import { ipcRenderer } from 'electron';
import Swal from 'sweetalert2';
@@ -18,6 +19,7 @@ import { ElectronConstants } from 'jslib-electron/electronConstants';
const MessageValidTimeout = 10 * 1000;
const EncryptionAlgorithm = 'sha1';
@Injectable()
export class NativeMessagingService {
private sharedSecrets = new Map<string, SymmetricCryptoKey>();