aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/arching-kaos-fetch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/arching-kaos-fetch.js b/src/js/arching-kaos-fetch.js
index bc982f9..c349081 100644
--- a/src/js/arching-kaos-fetch.js
+++ b/src/js/arching-kaos-fetch.js
@@ -1,4 +1,4 @@
-function archingKaosFetchJSON( url, callback ){
+function archingKaosFetchJSON( url, callback, params ){
// fetch(url, {
// method:'GET',
// headers:{
@@ -19,7 +19,7 @@ function archingKaosFetchJSON( url, callback ){
request.addEventListener("load", ()=>{
console.log(request.response);
var json = JSON.parse(request.response);
- callback(json);
+ callback(json, params);
});
request.addEventListener("error", ()=>{
console.log("An error occured.");