Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
import { ipcRenderer } from "electron";
import { AbstractStorageService } from "@bitwarden/common/abstractions/storage.service";
export class ElectronRendererStorageService implements AbstractStorageService {
get<T>(key: string): Promise<T> {
return ipcRenderer.invoke("storageService", {
action: "get",
key: key,
});
}
has(key: string): Promise<boolean> {
action: "has",
save(key: string, obj: any): Promise<any> {
action: "save",
obj: obj,
remove(key: string): Promise<any> {
action: "remove",