Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- messaging.requestPermission()
- .then(function(result) {
- console.log('Notification permission granted by user.');
- })
- .catch(function(err) {
- console.log('Unable to get permission for notification.', err);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement