1
0
silverbullet/webapp/syscalls/db.localstorage.ts

9 lines
180 B
TypeScript
Raw Normal View History

export default {
"db.put": (key: string, value: any) => {
localStorage.setItem(key, value);
},
"db.get": (key: string) => {
return localStorage.getItem(key);
},
};