@ohif/extension-cornerstone 3.14.0-beta.115 → 3.14.0-beta.117
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": "@ohif/extension-cornerstone",
|
|
3
|
-
"version": "3.14.0-beta.
|
|
3
|
+
"version": "3.14.0-beta.117",
|
|
4
4
|
"description": "OHIF extension for Cornerstone",
|
|
5
5
|
"author": "OHIF",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@cornerstonejs/codec-openjpeg": "1.3.2",
|
|
37
37
|
"@cornerstonejs/codec-openjph": "2.4.9",
|
|
38
38
|
"@cornerstonejs/dicom-image-loader": "5.19.7",
|
|
39
|
-
"@ohif/core": "3.14.0-beta.
|
|
40
|
-
"@ohif/extension-default": "3.14.0-beta.
|
|
41
|
-
"@ohif/ui-next": "3.14.0-beta.
|
|
39
|
+
"@ohif/core": "3.14.0-beta.117",
|
|
40
|
+
"@ohif/extension-default": "3.14.0-beta.117",
|
|
41
|
+
"@ohif/ui-next": "3.14.0-beta.117",
|
|
42
42
|
"dcmjs": "0.52.0",
|
|
43
43
|
"dicom-parser": "1.8.21",
|
|
44
44
|
"hammerjs": "2.0.8",
|
package/src/init.tsx
CHANGED
|
@@ -326,7 +326,9 @@ export default async function init({
|
|
|
326
326
|
*/
|
|
327
327
|
const imageLoadFailedHandler = ({ detail }) => {
|
|
328
328
|
const handler = errorHandler.getHTTPErrorHandler();
|
|
329
|
-
handler
|
|
329
|
+
if (typeof handler === 'function') {
|
|
330
|
+
handler(detail.error);
|
|
331
|
+
}
|
|
330
332
|
};
|
|
331
333
|
|
|
332
334
|
eventTarget.addEventListener(EVENTS.IMAGE_LOAD_FAILED, imageLoadFailedHandler);
|