diff options
author | emkael <emkael@tlen.pl> | 2017-06-07 02:19:02 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-06-07 02:19:02 +0200 |
commit | 4c17c763d78f09c2b49e9e7feb294d4690facad2 (patch) | |
tree | e3cef633ef54a4c5d1c89aa45f99939b979d2f22 | |
parent | 5fa1f89e043397baba5533a6b12bab1c15dddb68 (diff) |
Workaround for IE's lack of Array.from method
-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(), |