Skip to content

Instantly share code, notes, and snippets.

@djcsdy
Created November 11, 2019 22:34
Show Gist options
  • Save djcsdy/5e0a52059171df180b5c84193aa8971b to your computer and use it in GitHub Desktop.
Save djcsdy/5e0a52059171df180b5c84193aa8971b to your computer and use it in GitHub Desktop.
Notification.requestPermission()
.then(() => new Notification("Welcome to ecco", {
body: "This is some body text"
}));
// See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment