From 7a7b2c61fe8394844fa306debb84917454ade7b0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 14 Aug 2026 01:19:44 -0700 Subject: Settings grows a Notifications page — per-category switches the notifier honours server-side — and the status bar gets a real coinos badge instead of a black blob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv --- src/sw-nwc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sw-nwc.js') diff --git a/src/sw-nwc.js b/src/sw-nwc.js index 108c393..2566a5c 100644 --- a/src/sw-nwc.js +++ b/src/sw-nwc.js @@ -47,7 +47,7 @@ self.addEventListener('push', (e) => { const [title, body] = T[data.reason] || T.chat; await self.registration.showNotification(title, { body, - icon: 'icon-192.png', badge: 'icon-192.png', + icon: 'icon-192.png', badge: 'badge-96.png', tag: 'notify-' + (data.reason || 'chat'), renotify: data.reason === 'payment', data: { url: './' }, }); @@ -79,7 +79,7 @@ self.addEventListener('push', (e) => { if (handled && handled.notify) { await self.registration.showNotification(handled.notify.title, { body: handled.notify.body, - icon: 'icon-192.png', badge: 'icon-192.png', + icon: 'icon-192.png', badge: 'badge-96.png', tag: handled.notify.tag || 'nwc-incoming', renotify: true, data: { url: './' }, }); @@ -93,7 +93,7 @@ self.addEventListener('push', (e) => { body: incoming ? 'Someone is trying to send you money. Open coinos so your wallet can receive it.' : 'An app is asking your wallet to pay. Open Coinos to approve.', - icon: 'icon-192.png', badge: 'icon-192.png', + icon: 'icon-192.png', badge: 'badge-96.png', tag: 'nwc-' + (data.servicePubkey || 'req'), renotify: false, data: { url: './' }, }); -- cgit v1.2.3