aboutsummaryrefslogtreecommitdiffstats
path: root/src/sw-nwc.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-14 01:13:47 -0700
committerAdam Soltys <[email protected]>2026-08-14 01:13:47 -0700
commit5b23470f5d9ec7ee7cc33c2b4b936ddd24fa17cc (patch)
treed1a34086526be29d123922ff45af40878ba4c25d /src/sw-nwc.js
parentc6404bae2ddbc402baa01349c5196d9fcebcf78a (diff)
downloadcoinosv3-5b23470f5d9ec7ee7cc33c2b4b936ddd24fa17cc.tar.gz
coinosv3-5b23470f5d9ec7ee7cc33c2b4b936ddd24fa17cc.zip
Money leaving while you're not looking gets a notification: NWC pays from the worker or a hidden tab announce themselves — amount, fee, and which app asked
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src/sw-nwc.js')
-rw-r--r--src/sw-nwc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sw-nwc.js b/src/sw-nwc.js
index a73a611..108c393 100644
--- a/src/sw-nwc.js
+++ b/src/sw-nwc.js
@@ -80,7 +80,7 @@ self.addEventListener('push', (e) => {
await self.registration.showNotification(handled.notify.title, {
body: handled.notify.body,
icon: 'icon-192.png', badge: 'icon-192.png',
- tag: 'nwc-incoming', renotify: true,
+ tag: handled.notify.tag || 'nwc-incoming', renotify: true,
data: { url: './' },
});
return;