Skip to content

Commit

Permalink
Merge pull request #6 from LeonardoCardoso/master
Browse files Browse the repository at this point in the history
Fix on duplicate notifications
  • Loading branch information
chalettu committed Jun 9, 2015
2 parents c198dc1 + b2135ba commit 1020381
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function PushClient(appid, tkn, options) {
var client=this;
var deferred = Q.defer();
var sendOptions=defaultConfig;
sendOptions.notifications = [];
sendOptions.notifications=[options];

client.request(sendOptions,"createMessage").then(function(data){
Expand Down

0 comments on commit 1020381

Please sign in to comment.