Browse Source

Fix duplicate 'key' variable.

pull/6/head
t123yh 7 years ago
parent
commit
51084e2eba
  1. 4
      static/script.js

4
static/script.js

@ -12,8 +12,8 @@ var addUrlParam = function (url, key, val) {
params[key] = val; params[key] = val;
url = twoPart[0] + '?'; url = twoPart[0] + '?';
for (let key in params) { for (let key2 in params) {
url += encodeURIComponent(key) + '=' + encodeURIComponent(params[key]) + '&'; url += encodeURIComponent(key2) + '=' + encodeURIComponent(params[key2]) + '&';
} }
url = url.substring(0, url.length - 1); url = url.substring(0, url.length - 1);

Loading…
Cancel
Save