Permalink
Browse files

update for request social method

  • Loading branch information...
EntityB committed Sep 15, 2017
1 parent 23b2cef commit aed24d447ae132b07acd62518ff9ccfa87c88451
Showing with 7 additions and 10 deletions.
  1. +6 −9 gamee/src/gameeAPI.js
  2. +1 −1 package.json
View
@@ -184,15 +184,12 @@ Gamee.prototype = (function () {
validateDataType(cb, "function", "cb", "gamee.requestSocial");
// functionality supposed to be removed once we do update for iOS
if (this._platform === "ios") {
var data = core.requestSocial(function (error, responseData) {
var modifiedResponse = {};
modifiedResponse.socialData = responseData;
cb(null, modifiedResponse);
});
} else {
var data = core.requestSocial(cb);
}
var data = core.requestSocial(function (error, responseData) {
var modifiedResponse = !responseData.hasOwnProperty("socialData") ? { socialData: responseData } : responseData
cb(null, modifiedResponse);
});
// var data = core.requestSocial(cb);
//cb(null, data);
}
};
View
@@ -1,6 +1,6 @@
{
"name": "gamee-js",
"version": "2.0.4",
"version": "2.0.5",
"description": "Gamee JS SDK",
"main": "gamee/src/index.js",
"scripts": {

0 comments on commit aed24d4

Please sign in to comment.