1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-08-21 17:04:08 +02:00

Make DELETE endpoint, add different UI description

This commit is contained in:
binwiederhier 2023-06-10 21:09:01 -04:00
parent eb220544a3
commit 58992fc795
5 changed files with 47 additions and 16 deletions

View file

@ -119,7 +119,12 @@ class SubscriptionManager {
return;
}
await api.updateWebPushSubscriptions(topics, browserSubscription);
if (topics.length > 0) {
await api.updateWebPush(browserSubscription, topics);
} else {
await api.deleteWebPush(browserSubscription);
}
}
async updateState(subscriptionId, state) {