forked from coracle/flotilla
Clean up and fix push notifications implementation
This commit is contained in:
@@ -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!"})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user