diff options
-rw-r--r-- | http/res/ranking.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/http/res/ranking.js b/http/res/ranking.js index 8ad9fec..3d5cdf2 100644 --- a/http/res/ranking.js +++ b/http/res/ranking.js @@ -60,9 +60,11 @@ var ranking = { }, constructHash : function(params) { - return Array.from(params).map(function(param) { - return param[0] + ':' + param[1].join(','); - }).join(';'); + var paramArray = []; + params.forEach(function(value, key) { + paramArray.push(key + ':' + value.join(',')); + }); + return paramArray.join(';'); }, savedParams : new Map(), |