From 722e5fbd310293ffc6305d34d9a86d55b508a28d Mon Sep 17 00:00:00 2001 From: Alexey Rodionov Date: Sat, 19 May 2018 21:17:31 +0300 Subject: [PATCH] Change semi-callback-semi-promise to promise --- firebase-messaging.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase-messaging.html b/firebase-messaging.html index fa2bf28..80a13c8 100644 --- a/firebase-messaging.html +++ b/firebase-messaging.html @@ -29,7 +29,7 @@ ```js this.$.messaging.requestPermission().then(function() { // permission was granted -}, function(err) { +}).catch(function(err) { // permission was denied }); ```