Last active
March 28, 2016 02:12
-
-
Save williampsena/ea869beeb70f2114b445 to your computer and use it in GitHub Desktop.
Notification API - Permission
This file contains 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
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