Commit 3bce790e authored by nanahira's avatar nanahira

fix

parent 225230ad
Pipeline #42236 passed with stages
in 8 minutes and 45 seconds
...@@ -251,7 +251,7 @@ call_match_api = (method, path, params) -> ...@@ -251,7 +251,7 @@ call_match_api = (method, path, params) ->
return null return null
match_api_url = new URL(settings.modules.arena_mode.match_api.url + "/" + path) match_api_url = new URL(settings.modules.arena_mode.match_api.url + "/" + path)
match_api_url.searchParams.append('ak', settings.modules.arena_mode.match_api.accesskey) match_api_url.searchParams.append('ak', settings.modules.arena_mode.match_api.accesskey)
for entry of Object.entries(params) for entry in Object.entries(params)
key = entry[0] key = entry[0]
val = entry[1] val = entry[1]
match_api_url.searchParams.append(key, val) match_api_url.searchParams.append(key, val)
......
...@@ -320,13 +320,15 @@ ...@@ -320,13 +320,15 @@
}; };
call_match_api = async function(method, path, params) { call_match_api = async function(method, path, params) {
var e, entry, key, match_api_url, res, val; var e, entry, j, key, len, match_api_url, ref, res, val;
if (!settings.modules.arena_mode.match_api.enabled) { if (!settings.modules.arena_mode.match_api.enabled) {
return null; return null;
} }
match_api_url = new URL(settings.modules.arena_mode.match_api.url + "/" + path); match_api_url = new URL(settings.modules.arena_mode.match_api.url + "/" + path);
match_api_url.searchParams.append('ak', settings.modules.arena_mode.match_api.accesskey); match_api_url.searchParams.append('ak', settings.modules.arena_mode.match_api.accesskey);
for (entry in Object.entries(params)) { ref = Object.entries(params);
for (j = 0, len = ref.length; j < len; j++) {
entry = ref[j];
key = entry[0]; key = entry[0];
val = entry[1]; val = entry[1];
match_api_url.searchParams.append(key, val); match_api_url.searchParams.append(key, val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment