Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/sw-11.js Secret

Created December 15, 2017 02:01
Embed
What would you like to do?
self.onpush = function(event) {
event.waitUntil(
registration.showNotification('WEATHER ADVISORY', {
body: event.data ? event.data.text() : 'no payload',
icon: 'icon.png'
})
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment