This commit is contained in:
Ross
2021-04-18 12:35:11 +01:00
parent 3bd9c88a22
commit 71bd329c8a
+5 -5
View File
@@ -579,11 +579,11 @@ export function openMainImage(current_question, t, source) {
// });
} else {
let url;
if (data_url.startsWith("http")) {
url = data_url;
} else {
url = window.location.href.replace(/\/\#\/?$/, "") + "/" + data_url;
}
//if (data_url.startsWith("http")) {
// url = data_url;
//} else {
// url = window.location.href.replace(/\/\#\/?$/, "") + "/" + data_url;
//}
if (url.endsWith("dcm")) {
url = "wadouri:" + url;