mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: improve push notification message shown on subscribe (#23052)
Updates push notification message for test notification.
This commit is contained in:
@@ -174,8 +174,8 @@ func (n *Webpusher) webpushSend(ctx context.Context, msg []byte, endpoint string
|
||||
|
||||
func (n *Webpusher) Test(ctx context.Context, req codersdk.WebpushSubscription) error {
|
||||
msgJSON, err := json.Marshal(codersdk.WebpushMessage{
|
||||
Title: "Test",
|
||||
Body: "This is a test Web Push notification",
|
||||
Title: "It's working!",
|
||||
Body: "You've subscribed to push notifications.",
|
||||
})
|
||||
if err != nil {
|
||||
return xerrors.Errorf("marshal webpush notification: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user