mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 05:22:57 +08:00
optimize code
fix spelling mistake.
This commit is contained in:
parent
3bccb896e2
commit
46b2a5ab1a
@ -18,7 +18,7 @@
|
|||||||
window.plugins.jPushPlugin.getRegistrationID(onGetRegistradionID);
|
window.plugins.jPushPlugin.getRegistrationID(onGetRegistradionID);
|
||||||
}
|
}
|
||||||
|
|
||||||
var onGetRegistradionID = function(data) {
|
var onGetRegistrationID = function(data) {
|
||||||
try {
|
try {
|
||||||
console.log("JPushPlugin:registrationID is " + data);
|
console.log("JPushPlugin:registrationID is " + data);
|
||||||
|
|
||||||
@ -51,7 +51,7 @@
|
|||||||
} else {
|
} else {
|
||||||
alertContent = event.aps.alert;
|
alertContent = event.aps.alert;
|
||||||
}
|
}
|
||||||
alert("open Notificaiton:" + alertContent);
|
alert("open Notification:" + alertContent);
|
||||||
} catch (exception) {
|
} catch (exception) {
|
||||||
console.log("JPushPlugin:onOpenNotification" + exception);
|
console.log("JPushPlugin:onOpenNotification" + exception);
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@
|
|||||||
alertContent = event.aps.alert;
|
alertContent = event.aps.alert;
|
||||||
}
|
}
|
||||||
$("#notificationResult").html(alertContent);
|
$("#notificationResult").html(alertContent);
|
||||||
} catch (exeption) {
|
} catch (exception) {
|
||||||
console.log(exception)
|
console.log(exception)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user