Update pomade implementation

This commit is contained in:
Jon Staab
2026-03-05 14:20:20 -08:00
parent a42ba5446a
commit a45633e214
12 changed files with 530 additions and 232 deletions
+2 -9
View File
@@ -9,8 +9,7 @@
import ModalHeader from "@lib/components/ModalHeader.svelte"
import ModalTitle from "@lib/components/ModalTitle.svelte"
import ModalFooter from "@lib/components/ModalFooter.svelte"
import {Push} from "@app/util/notifications"
import {kv, db} from "@app/core/storage"
import {logout} from "@app/util/logout"
const back = () => history.back()
@@ -18,13 +17,7 @@
loading = true
try {
await Push.disable()
await kv.clear()
await db.clear()
localStorage.clear()
window.location.href = "/"
await logout()
} catch (e) {
console.error(e)
loading = false