Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Jul 5, 2018
Embed
What would you like to do?
self.addEventListener('push', e => {
e.ports[0].postMessage({
msg: "Hey I just got a push from you!",
data: e.data
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment