| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-03-04 16:50:31 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-03-04 16:50:31 UTC |
| parent | 6110271c299f291af4792d3b60b209c07ddbed46 |
| snikket/Client.hx | +4 | -0 |
diff --git a/snikket/Client.hx b/snikket/Client.hx index 0f9e493..cb5fd5f 100644 --- a/snikket/Client.hx +++ b/snikket/Client.hx @@ -943,6 +943,10 @@ class Client extends EventEmitter { userVisibleOnly: true, applicationServerKey: vapid_public_raw }).then((pushSubscription) -> { + if (pushSubscription == null) { + trace("WebPush subscription failed"); + return; + } enablePush( push_service, vapid_key.privateKey,