mirror of
https://github.com/bitwarden/browser
synced 2026-01-03 17:13:47 +00:00
* Add new encrypt service functions * Undo changes * Cleanup * Fix build * Fix comments * Switch encrypt service to use SDK functions * Move remaining functions to PureCrypto * Tests * Increase test coverage * Enforce sdk.ready and drop unused codepaths * Delete unused code * Add forgotten sdk init logic * Fix build error * Fix browser extension failing to unlock after process reload due to outdated usage of decryptString * Fix send encryption * Fix client key half decryption being stuck * Attempt to fix sharereplay * Fix build * Fix type / add filter / add distinctuntilchange * Fix capitalization
10 lines
362 B
TypeScript
10 lines
362 B
TypeScript
import { SdkLoadService } from "@bitwarden/common/platform/abstractions/sdk/sdk-load.service";
|
|
import * as sdk from "@bitwarden/sdk-internal";
|
|
|
|
export class MainSdkLoadService extends SdkLoadService {
|
|
async load(): Promise<void> {
|
|
const module = await import("@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.wasm");
|
|
(sdk as any).init(module);
|
|
}
|
|
}
|