fix cb in subscribe and unsubcribe function
This commit is contained in:
parent
95def8563d
commit
cf3d545056
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ angular.module('copayApp.services')
|
||||||
}
|
}
|
||||||
|
|
||||||
root.subscribe = function(opts, walletClient, cb) {
|
root.subscribe = function(opts, walletClient, cb) {
|
||||||
if (!usePushNotifications) return;
|
if (!usePushNotifications) return cb();
|
||||||
|
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
if (!config.pushNotifications.enabled) return;
|
if (!config.pushNotifications.enabled) return;
|
||||||
|
|
@ -79,7 +79,7 @@ angular.module('copayApp.services')
|
||||||
}
|
}
|
||||||
|
|
||||||
root.unsubscribe = function(walletClient, cb) {
|
root.unsubscribe = function(walletClient, cb) {
|
||||||
if (!usePushNotifications) return;
|
if (!usePushNotifications) return cb();
|
||||||
|
|
||||||
walletClient.pushNotificationsUnsubscribe(function(err) {
|
walletClient.pushNotificationsUnsubscribe(function(err) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue