From 319592264140e69ea8f5738a15c4bbd6ae26e248 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Nov 2021 22:44:09 +0000 Subject: [PATCH] . --- static/js/dicomViewer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/dicomViewer.js b/static/js/dicomViewer.js index ba857899..6b9c8ff9 100644 --- a/static/js/dicomViewer.js +++ b/static/js/dicomViewer.js @@ -672,7 +672,11 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l }); } } else { - if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) { + if (image_url.startsWith("wadouri")) { + cornerstone.loadAndCacheImage(image_url).then(function (image) { + loadCornerstoneThumb(); + }); + } else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) { img = $("", { src: image_url, id: "thumb-image-" + id, @@ -685,10 +689,6 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l $("#thumb-" + id).append(img); // otherwise try to load it as a dicom - } else if (!image_url.startsWith("wadouri")) { - cornerstone.loadAndCacheImage(image_url).then(function (image) { - loadCornerstoneThumb(); - }); } else { let url = "wadouri:" + image_url;