Skip to content

Commit

Permalink
Merge pull request #44 from echofox-team/fix-ff46
Browse files Browse the repository at this point in the history
Fix for FF >= 46
  • Loading branch information
YoruNoHikage committed Jan 28, 2016
2 parents c47f386 + c52942e commit 2badc70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/EchofonSign.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ EchofonSign.getSignatureForSyncServer = function(str)
var com = Cc['@naan.net/twitterfox-sign;1'].getService(Ci.nsITwitterFoxSign);
var sig = com.sign(str);
var toHexString = function(charCode) { return ("0" + charCode.toString(16)).slice(-2); };
return [toHexString(sig.charCodeAt(i)) for (i in sig)].join("");
return sig.map((e) => toHexString(sig.charCodeAt(e))).join("");
}
else {
return signByLibrary(str);
Expand Down
2 changes: 1 addition & 1 deletion modules/EchofonSync.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ EchofonSync.prototype = {
return null;
}
var toHexString = function(charCode) { return ("0" + charCode.toString(16)).slice(-2); };
return [toHexString(sig.charCodeAt(i)) for (i in sig)].join("");
return sig.map((e) => toHexString(sig.charCodeAt(i))).join("");
},

onLoadSync: function(req, user, callback) {
Expand Down

0 comments on commit 2badc70

Please sign in to comment.