@itutoring/itutoring_application_js_api 1.4.3 → 1.4.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -32,8 +32,6 @@ class Toolkit
32
32
  var data = await APIController.Post(this.#MODULE, this.#REQUEST_ACCESS, {
33
33
  'uid': moduleUid
34
34
  });
35
-
36
- this.CheckForError(data);
37
35
  }
38
36
 
39
37
  /**
@@ -47,19 +45,8 @@ class Toolkit
47
45
  'uid': moduleUid
48
46
  });
49
47
 
50
- this.CheckForError(info);
51
-
52
48
  return JSON.parse(info);
53
49
  }
54
-
55
- static async CheckForError(data)
56
- {
57
- if (data.includes("error: "))
58
- {
59
- data = data.replace("error: ", "");
60
- location.href = data
61
- }
62
- }
63
50
  }
64
51
 
65
52
  export default Toolkit;