From 1524cccadf3a1c3843fffaa90f87154017ebe2a8 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 18 Apr 2021 12:31:11 +0100 Subject: [PATCH] . --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index f114d23..3ba3305 100644 --- a/js/main.js +++ b/js/main.js @@ -957,7 +957,7 @@ async function loadQuestion(n, section = 1, force_reload = false) { $("#figure-" + id).append(img); // otherwise try to load it as a dicom (if it starts with data) - } elif(based_img.startsWith("data:")) { + } else if(based_img.startsWith("data:")) { // convert the data url to a file viewer .urltoFile(based_img, "dicom", "application/dicom")