Last active
July 10, 2017 19:52
-
-
Save yoshuawuyts/ce73134b5b224160b8b352048ea563b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onPush(function (event, register) { | |
var opts = { | |
body: 'Yay it works.', | |
data: 'https://developers.google.com/web/', | |
actions: [ | |
{ action: 'like', title: 'like!' }, | |
{ action: 'reply', title: 'reply!' } | |
] | |
} | |
var notification = register(title, opts) | |
notification.on('click', function (event, open) { | |
}) | |
notification.on('close', function (event) { | |
}) | |
}) |
Author
yoshuawuyts
commented
Jul 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment