1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-09-19 02:01:01 +02:00

Simplify web push UX and updates

- Use a single endpoint
- Use a declarative web push sync hook. This thus handles all edge cases
  that had to be manually handled before: logout, login, account sync,
  etc.
- Simplify UX: browser notifications are always enabled (unless denied),
  web push toggle only shows up if permissions are already granted.
This commit is contained in:
nimbleghost 2023-06-02 13:22:54 +02:00
parent 4944e3ae4b
commit 47ad024ec7
20 changed files with 294 additions and 427 deletions
web/src/components

View file

@ -120,8 +120,6 @@ const ProfileIcon = () => {
const handleLogout = async () => {
try {
await subscriptionManager.unsubscribeAllWebPush();
await accountApi.logout();
await getDb().delete();
} finally {