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 dfile
); );
cornerstone.loadAndCacheImage(imageId).then(function (image) { cornerstone.loadAndCacheImage(imageId).then(function (image) {
loadCornerstoneThumb(); loadCornerstoneThumb(image);
}); //.catch( function(error) { }); //.catch( function(error) {
}); });
} }
} else { } else {
if (image_url.startsWith("wadouri")) { if (image_url.startsWith("wadouri")) {
cornerstone.loadAndCacheImage(image_url).then(function (image) { cornerstone.loadAndCacheImage(image_url).then(function (image) {
loadCornerstoneThumb(); loadCornerstoneThumb(image);
}); });
} else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) { } else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
img = $("<img />", { img = $("<img />", {
@@ -693,7 +693,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
let url = "wadouri:" + image_url; let url = "wadouri:" + image_url;
cornerstone.loadAndCacheImage(url).then(function (image) { cornerstone.loadAndCacheImage(url).then(function (image) {
loadCornerstoneThumb(); loadCornerstoneThumb(image);
}); });
} }
} }