GoogleChromeLabs / web-push-codelab

Other
556 stars 291 forks source link

The text is only shown in the console #90

Open akoster opened 5 years ago

akoster commented 5 years ago

To show the actual text from the companion site in the push notification change the code in sw.js, replace:

body: 'Yay it works.',

with

body: event.data.text(),

Thanks for an awesome tutorial!