@itutoring/itutoring_application_js_api 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/apiController.js +1 -5
  2. package/package.json +1 -1
package/apiController.js CHANGED
@@ -95,11 +95,7 @@ class APIController
95
95
  var formData = new FormData();
96
96
  if (file != null)
97
97
  {
98
- console.log("api - U_F");
99
98
  var formData = new FormData();
100
- formData.append("file", file);
101
-
102
-
103
99
  }
104
100
 
105
101
  var args = APIController.GetArgsFromArray(data);
@@ -115,7 +111,6 @@ class APIController
115
111
  }
116
112
  }
117
113
 
118
- request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
119
114
  request.setRequestHeader("r-key", APIController.#R_KEY);
120
115
  request.setRequestHeader("sites", location.hostname);
121
116
  request.setRequestHeader("key", APIController.#CLIENT_KEY);
@@ -128,6 +123,7 @@ class APIController
128
123
  }
129
124
  else
130
125
  {
126
+ request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
131
127
  request.send(args);
132
128
  }
133
129
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",