Change arguments to args everywhere, as arguments is a reserved word in strict
[ndcode_site.git] / js / api_call.js.min
index aa1db76..12ebdae 100644 (file)
@@ -6,10 +6,10 @@ Problem = class {
   }
 }
 
-api_call = async (endpoint, ...arguments) => {
+api_call = async (endpoint, ...args) => {
   let response = await fetch(
     endpoint,
-    {method: 'POST', body: JSON.stringify(arguments)}
+    {method: 'POST', body: JSON.stringify(args)}
   )
   let result = await response.json()
   if (!response.ok)