This commit is contained in:
Ross
2021-11-11 21:30:44 +00:00
parent a0933d5077
commit ce98f012a4
+4 -3
View File
@@ -465,12 +465,13 @@
$(el).parent().parent().find(".temp-thumb").remove();
let imageId;
if (el.files[0].type.startsWith("image")) {
const imageId = `${url}`;
imageId = `${url}`;
} else {
const imageId = `wadouri:${url}`;
imageId = `wadouri:${url}`;
}
const element = $(`<div class='temp-thumb' src=${imageId}></div>`).get(0)
const element = $(`<div class='temp-thumb' src=${url}></div>`).get(0)
$(el).parent().parent().prepend(element);
cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageId).then(function (image) {