mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Treat an unset front-service PUSH_PUBLIC_KEY as disabled browser push support instead of passing an empty string into PushManager.subscribe. Changes: - Add a small push public key accessor that normalizes undefined and blank metadata to undefined. - Use that accessor for both push availability checks and push subscription setup. - Preserve existing behavior when a real VAPID public key is configured. Behavioral effect: Instances without web push configured no longer attempt service worker push subscription with an invalid empty ECDSA key, while keeping browser push disabled until VAPID keys and the notification service are configured. Signed-off-by: Ignat Remizov <ignat@ignatremizov.com>