Skip to content

Commit

Permalink
fix typo in sw
Browse files Browse the repository at this point in the history
  • Loading branch information
bonbud-macryg committed Jul 19, 2024
1 parent f78754e commit 239e3a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion push.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ let vapidKeys = {

push.setVapidDetails('mailto:@code.co.uk', vapidKeys.publicKey, vapidKeys.privateKey)

let sub = {}
let sub = {"endpoint":"https://fcm.googleapis.com/fcm/send/cYpbsEqV2Mc:APA91bHwJIclUhZ70TCfAWTJDyWsPM-uh11yrJc6O_vO2v7fViTaRu5QZbV66HDJUDsHKPXnRGrrkY8IkpTTmYf8QbfeN5GWSmBX762fZ4cGf-RoKYSjgG9XPnc2PQjCYVN48qqPOThK","expirationTime":null,"keys":{"p256dh":"BDDMvBH__dUnbEd0s4Rnfnru6lyIAHMOo9foGoL3miaxkyvyOJrfzinS8kpwFXXGT4qcyRTtBlZaU78Ul80JPWU","auth":"C2K00EPNsopcnB_NxsTssg"}}
push.sendNotification(sub, 'test message')
4 changes: 2 additions & 2 deletions sw.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
self.addEventListener('push', () => {
self.registration.sendNotification('test message', {})
})
self.registration.showNotification('Hello world!', options);
});

0 comments on commit 239e3a3

Please sign in to comment.