Skip to content

Commit

Permalink
update the javascript style error
Browse files Browse the repository at this point in the history
  • Loading branch information
iflamed committed Jan 17, 2017
1 parent d8a9575 commit f156c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/cordova-huawei-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ HuaweiPush.prototype.tokenRegistered = function (token) {
// 透传消息
HuaweiPush.prototype.pushMsgReceived = function (msg) {
try {
msg.extras = JSON.parse(msg.extras)
msg.extras = JSON.parse(msg.extras);
this.receiveRegisterResult = msg;
cordova.fireDocumentEvent('huaweipush.pushMsgReceived', this.receiveRegisterResult);
} catch(exception) {
Expand All @@ -25,7 +25,7 @@ HuaweiPush.prototype.pushMsgReceived = function (msg) {
}
HuaweiPush.prototype.notificationOpened = function (msg) {
try {
msg.extras = JSON.parse(msg.extras)
msg.extras = JSON.parse(msg.extras);
this.receiveRegisterResult = msg;
cordova.fireDocumentEvent('huaweipush.notificationOpened', this.receiveRegisterResult);
} catch(exception) {
Expand Down

0 comments on commit f156c09

Please sign in to comment.