This commit is contained in:
Ross
2021-11-11 18:12:20 +00:00
parent 2d2d218279
commit 68be60e23c
+2 -2
View File
@@ -513,9 +513,9 @@
$(el).parent().parent().find(".temp-thumb").remove();
const element = $(`<div class='temp-thumb' src=${reader.result}></div>`).get(0)
$(el).parent().parent().prepend(element);
const imageId = `wadouri:${url}`;
const element = $(`<div class='temp-thumb' src=${imageId}></div>`).get(0)
$(el).parent().parent().prepend(element);
cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageId).then(function (image) {
cornerstone.displayImage(element, image);