Add new alerts

This commit is contained in:
Jon Staab
2026-01-20 10:40:33 -08:00
parent f85748fef9
commit 6d1eeacc49
9 changed files with 350 additions and 203 deletions
+3 -7
View File
@@ -63,13 +63,6 @@
...notifications,
})
// Listen for navigation messages from service worker
navigator.serviceWorker?.addEventListener("message", event => {
if (event.data && event.data.type === "NAVIGATE") {
goto(event.data.url)
}
})
// Listen for deep link events
App.addListener("appUrlOpen", (event: URLOpenListenerEvent) => {
const url = new URL(event.url)
@@ -135,6 +128,9 @@
// Initialize keyboard state tracking
unsubscribers.push(syncKeyboard())
// Initialize background notifications
unsubscribers.push(notifications.Alerts.resume())
// Listen for signer errors, report to user via toast
unsubscribers.push(
throttled(10_000, signerLog).subscribe($log => {