fix tortuous

This commit is contained in:
darkterrorooo
2015-12-09 18:27:08 +08:00
parent 42d64ca2f0
commit a3ad96f786
2 changed files with 6 additions and 4 deletions

View File

@@ -54,13 +54,13 @@
}
var onReceiveNotification = function(event){
try{
var alert
var alertContent
if(device.platform == "Android"){
alert = window.plugins.jPushPlugin.receiveNotification.alert;
alertContent = window.plugins.jPushPlugin.receiveNotification.alert;
}else{
alert = event.aps.alert;
alertContent = event.aps.alert;
}
$("#notificationResult").html(alert);
$("#notificationResult").html(alertContent);
}
catch(exeption){