Last active
March 28, 2016 01:42
-
-
Save williampsena/4f06c43e38dd01c59a1d to your computer and use it in GitHub Desktop.
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 RequestPermission(callback){ | |
callback = callback || function(status) { | |
console.log('Status da permissão: ' + status); | |
callback(status === "granted"); | |
}; | |
Notification.requestPermission(callback); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment