feat: make SNWebCrypto a constant
This commit is contained in:
3
app/assets/javascripts/crypto.ts
Normal file
3
app/assets/javascripts/crypto.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import { SNWebCrypto } from "@standardnotes/sncrypto-web";
|
||||||
|
|
||||||
|
export const Crypto = new SNWebCrypto();
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user