This commit is contained in:
Ross
2021-11-11 22:48:59 +00:00
parent 3195922641
commit 285c21d430
+3 -3
View File
@@ -667,14 +667,14 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
dfile
);
cornerstone.loadAndCacheImage(imageId).then(function (image) {
loadCornerstoneThumb();
loadCornerstoneThumb(image);
}); //.catch( function(error) {
});
}
} else {
if (image_url.startsWith("wadouri")) {
cornerstone.loadAndCacheImage(image_url).then(function (image) {
loadCornerstoneThumb();
loadCornerstoneThumb(image);
});
} else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
img = $("<img />", {
@@ -693,7 +693,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
let url = "wadouri:" + image_url;
cornerstone.loadAndCacheImage(url).then(function (image) {
loadCornerstoneThumb();
loadCornerstoneThumb(image);
});
}
}