mirror of https://github.com/BTCPrivate/copay.git
Clean variables
This commit is contained in:
parent
4e8bd0634c
commit
b73d51f194
|
@ -98,10 +98,9 @@ angular.module('copayApp.services').factory('pushNotificationsService', function
|
||||||
FCMPlugin.onNotification(function(data) {
|
FCMPlugin.onNotification(function(data) {
|
||||||
if (!_token) return;
|
if (!_token) return;
|
||||||
$log.debug('New Event Push onNotification: ' + JSON.stringify(data));
|
$log.debug('New Event Push onNotification: ' + JSON.stringify(data));
|
||||||
var walletId, copayerId;
|
|
||||||
if(data.wasTapped) {
|
if(data.wasTapped) {
|
||||||
// Notification was received on device tray and tapped by the user.
|
// Notification was received on device tray and tapped by the user.
|
||||||
var walletId = data ? data.walletId : null;
|
var walletId = data.walletId;
|
||||||
if (!walletId) return;
|
if (!walletId) return;
|
||||||
$ionicHistory.nextViewOptions({
|
$ionicHistory.nextViewOptions({
|
||||||
disableAnimate: true,
|
disableAnimate: true,
|
||||||
|
|
Loading…
Reference in New Issue