1 import { getItem, removeItem, setItem } from '../helpers/storage';
2 import type { KTLocalStorageAPI, KeyTransparencyState } from '../interfaces';
5 * Return the default set of functions to use local storage,
6 * i.e. those of the currently running subdomain
8 export const getDefaultKTLS = (): KTLocalStorageAPI => {
10 getItem: async (key: string) => getItem(key),
11 setItem: async (key: string, value: string) => setItem(key, value),
12 removeItem: async (key: string) => removeItem(key),
13 getBlobs: async () => Object.keys(window.localStorage),
17 export const defaultKeyTransparencyState: KeyTransparencyState = {
18 selfAuditResult: undefined,