push notification subscribe refactor
This commit is contained in:
parent
012fb8021b
commit
2d07cf0e55
4 changed files with 45 additions and 36 deletions
|
|
@ -41,7 +41,7 @@ angular.module('copayApp.controllers').controller('preferencesGlobalController',
|
|||
}
|
||||
};
|
||||
configService.set(opts, function(err) {
|
||||
$rootScope.$emit('Local/EnableNotifications', opts);
|
||||
$rootScope.$emit('Local/EnableNotifications', opts.notifications.enabled);
|
||||
if (err) $log.debug(err);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue