Fix if push is not available
This commit is contained in:
parent
ee5b2817d7
commit
cd0e5df447
3 changed files with 16 additions and 4 deletions
|
|
@ -11,7 +11,12 @@ angular.module('copayApp.services')
|
|||
|
||||
root.init = function(walletsClients) {
|
||||
var defaults = configService.getDefaults();
|
||||
var push = PushNotification.init(defaults.pushNotifications.config);
|
||||
try {
|
||||
var push = PushNotification.init(defaults.pushNotifications.config);
|
||||
} catch(e) {
|
||||
$log.error(e);
|
||||
return;
|
||||
};
|
||||
|
||||
push.on('registration', function(data) {
|
||||
$log.debug('Starting push notification registration');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue