feat: make SNWebCrypto a constant

This commit is contained in:
Baptiste Grob
2021-01-21 11:56:20 +01:00
parent 30ddaec0f7
commit 2c4742a91d
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
import { SNWebCrypto } from "@standardnotes/sncrypto-web";
export const Crypto = new SNWebCrypto();

View File

@@ -25,8 +25,8 @@ import {
KeyboardManager
} from '@/services';
import { AppState } from '@/ui_models/app_state';
import { SNWebCrypto } from '@standardnotes/sncrypto-web';
import { Bridge } from '@/services/bridge';
import { Crypto } from '@/crypto';
type WebServices = {
appState: AppState;
@@ -60,7 +60,7 @@ export class WebApplication extends SNApplication {
bridge.environment,
platformFromString(getPlatformString()),
deviceInterface,
new SNWebCrypto(),
Crypto,
new AlertService(),
identifier,
undefined,