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