Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. messaging.requestPermission()
  2. .then(function(result) {
  3. console.log('Notification permission granted by user.');
  4. })
  5. .catch(function(err) {
  6. console.log('Unable to get permission for notification.', err);
  7. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement