Phase 8
This commit is contained in:
82 files changed
+4903
-287
No files matched your search
+6
-2
@@ -1,4 +1,4 @@
|
||||
// NextChair service worker.
|
||||
// Service worker — internal filename/comment only, never shown to a user.
|
||||
//
|
||||
// Scope, deliberately: this app is almost entirely dynamic, signed-in,
|
||||
// per-request server-rendered content (appointments, calendars, loyalty
|
||||
@@ -94,7 +94,11 @@ self.addEventListener("push", (event) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const title = payload.title || "NextChair";
|
||||
// The server always sets a real, business-branded title (see
|
||||
// src/services/notifications/reminder-worker.ts) — this is only a
|
||||
// defensive fallback for a malformed payload, so it stays neutral
|
||||
// rather than naming the internal product.
|
||||
const title = payload.title || "New notification";
|
||||
const options = {
|
||||
body: payload.body || "",
|
||||
data: { url: payload.url || "/" },
|
||||
|
||||
Reference in new issue
Block a user