Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/sw-11.js Secret

Created Dec 15, 2017
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
You can’t perform that action at this time.