Fix if push is not available
This commit is contained in:
parent
ee5b2817d7
commit
cd0e5df447
3 changed files with 16 additions and 4 deletions
|
|
@ -318,6 +318,8 @@ angular.module('copayApp.services')
|
|||
var defaults = configService.getDefaults();
|
||||
var push = pushNotificationsService.init(root.wallet);
|
||||
|
||||
if (!push) return;
|
||||
|
||||
push.on('notification', function(data) {
|
||||
if (!data.additionalData.foreground) {
|
||||
$log.debug('Push notification event: ', data.message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue