MCPcopy Create free account
hub / github.com/aliasvault/aliasvault / initRustCore

Function initRustCore

apps/browser-extension/src/utils/RustCore.ts:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 * everything else lazily inits on first use.
31 */
32export function initRustCore(): Promise<void> {
33 if (!initPromise) {
34 initPromise = (async (): Promise<void> => {
35 const wasmUrl = (browser.runtime.getURL as (path: string) => string)('src/aliasvault_core_bg.wasm');
36 const wasmBytes = await (await fetch(wasmUrl)).arrayBuffer();
37 await initWasm(wasmBytes);
38 })();
39 }
40 return initPromise;
41}
42
43/**
44 * Extract the host (subdomain + domain) from a URL.

Callers 6

extractDomainFunction · 0.70
extractRootDomainFunction · 0.70
generatePasswordFunction · 0.70
getDicewareLanguagesFunction · 0.70
filterItemsFunction · 0.70
isUrlAlreadyLinkedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected