Skip to content

Commit 8a12e24

Browse files
authored
Fix PushSubscription code example to actually post JSON object (#37632)
1 parent bdecbff commit 8a12e24

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/api/pushsubscription

1 file changed

+1
-1
lines changed

files/en-us/web/api/pushsubscription/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const subscriptionObject = {
7171
// Stringify the object an post to the app server
7272
fetch(`https://example.com/push/`, {
7373
method: "post",
74-
body: JSON.stringify(pushSubscription);
74+
body: JSON.stringify(subscriptionObject);
7575
});
7676
```
7777

0 commit comments

Comments
 (0)