This commit is contained in:
Stefan Lazic committed 2026-08-04 09:57:58 +01:00
1 parent 546613e677
commit 4785510144
82 files changed
+4903 -287

No files matched your search

+6 -2
View File
@@ -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 || "/" },