docs: readme

This commit is contained in:
Dax Raad
2025-06-20 15:22:41 -04:00
parent 4ec02330f3
commit 1e9fa8d022
5 changed files with 48 additions and 24 deletions
+8
View File
@@ -159,6 +159,14 @@ export namespace Session {
return share
}
export async function unshare(id: string) {
await Storage.remove("session/share/" + id)
await update(id, (draft) => {
draft.share = undefined
})
await Share.remove(id)
}
export async function update(id: string, editor: (session: Info) => void) {
const { sessions } = state()
const session = await get(id)