Skip to content

Instantly share code, notes, and snippets.

@williampsena
Last active March 28, 2016 02:12
Show Gist options
  • Save williampsena/ea869beeb70f2114b445 to your computer and use it in GitHub Desktop.
Save williampsena/ea869beeb70f2114b445 to your computer and use it in GitHub Desktop.
Notification API - Permission
function isNotificationEnabled() {
if(!window.Notification) {
console.log('Oooh no! Your browser is too old!');
return false;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment