fixed bug in pushNotificationsService token registration

This commit is contained in:
Kadir Sekha 2017-11-13 15:07:42 +09:00
commit 93f900919f

View file

@ -102,7 +102,7 @@ angular.module('copayApp.services').factory('pushNotificationsService', function
if (usePushNotifications) {
FirebasePlugin.onTokenRefresh(function(token) {
if (!_token) return;
if (!token) return;
$log.debug('Refresh and update token for push notifications...');
_token = token;
root.enable();