Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .then(function(subscription) {
- fetch('/push/subscribe',{
- method: "POST",
- headers: {
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify(subscription)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement