We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc0269 commit ca9425dCopy full SHA for ca9425d
src/api.js
@@ -71,6 +71,8 @@ class DICOMwebClient {
71
this.stowURL = this.baseURL;
72
}
73
74
+ debugger;
75
+
76
this.headers = options.headers || {};
77
this.errorInterceptor = options.errorInterceptor || function() {};
78
@@ -87,6 +89,9 @@ class DICOMwebClient {
87
89
88
90
91
_httpRequest(url, method, headers, options = {}) {
92
93
+ const {errorInterceptor} = this;
94
95
return new Promise((resolve, reject) => {
96
const request = new XMLHttpRequest();
97
request.open(method, url, true);
@@ -137,7 +142,7 @@ class DICOMwebClient {
137
142
console.error(error);
138
143
console.error(error.response);
139
144
140
- this.errorInterceptor(error);
145
+ errorInterceptor(error);
141
146
147
reject(error);
148
0 commit comments