From 84a6e2ceb75aaa9b202cf741b9435021f7c2563b Mon Sep 17 00:00:00 2001 From: Jesper Noordsij <45041769+jnoordsij@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:28:20 +0100 Subject: [PATCH] Update PushSubscription code example --- files/en-us/web/api/pushsubscription/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/pushsubscription/index.md b/files/en-us/web/api/pushsubscription/index.md index 7c1a2e486b64c94..1ff490cbed41d59 100644 --- a/files/en-us/web/api/pushsubscription/index.md +++ b/files/en-us/web/api/pushsubscription/index.md @@ -71,7 +71,7 @@ const subscriptionObject = { // Stringify the object an post to the app server fetch(`https://example.com/push/`, { method: "post", - body: JSON.stringify(pushSubscription); + body: JSON.stringify(subscriptionObject); }); ```