feat: Add error handler to CWIL
This commit is contained in:
1 parent
e7b32cc51e
commit
70e4c55920
4 files changed
+23
-1
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import cornerstone from 'cornerstone-core';
|
||||
import cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader';
|
||||
import dicomParser from 'dicom-parser';
|
||||
import { errorHandler } from '@ohif/core'
|
||||
|
||||
let initialized = false;
|
||||
|
||||
@@ -35,6 +36,9 @@ export default function initWADOImageLoader(UserAuthenticationService) {
|
||||
xhr.setRequestHeader('Authorization', headers.Authorization);
|
||||
}
|
||||
},
|
||||
errorInterceptor: error => {
|
||||
errorHandler.getHTTPErrorHandler(error)
|
||||
},
|
||||
});
|
||||
|
||||
initWebWorkers();
|
||||
|
||||
Reference in new issue
Block a user