Clean up and fix push notifications implementation

This commit is contained in:
Jon Staab
2026-01-23 15:35:54 -08:00
parent 286d939097
commit 2528e4acad
7 changed files with 107 additions and 83 deletions
+6
View File
@@ -48,6 +48,12 @@
const onsubmit = preventDefault(async () => {
await publishSettings($state.snapshot(settings))
if (settings.alerts_push) {
await Alerts.start()
} else {
await Alerts.cancel()
}
pushToast({message: "Your settings have been saved!"})
})