mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
abstract storage service
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
import { StorageService } from '../../../services/abstractions/storage.service';
|
||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||
|
||||
function getBackgroundService<T>(service: string) {
|
||||
@@ -8,6 +9,7 @@ function getBackgroundService<T>(service: string) {
|
||||
};
|
||||
}
|
||||
|
||||
export const storageService = getBackgroundService<StorageService>('storageService');
|
||||
export const tokenService = getBackgroundService<any>('tokenService');
|
||||
export const cryptoService = getBackgroundService<any>('cryptoService');
|
||||
export const userService = getBackgroundService<any>('userService');
|
||||
|
||||
Reference in New Issue
Block a user