Live video on the AT Protocol
1import { AQStorage } from "./storage.shared";
2
3export default class WebStorage implements AQStorage {
4 async getItem(key: string): Promise<string | null> {
5 return localStorage.getItem(key);
6 }
7
8 async setItem(key: string, value: string): Promise<void> {
9 localStorage.setItem(key, value);
10 }
11
12 async removeItem(key: string): Promise<void> {
13 localStorage.removeItem(key);
14 }
15}