Refactor code structure for improved readability and maintainability

This commit is contained in:
Ross
2026-05-11 11:31:04 +01:00
parent d046b7a151
commit 84b032addb
3 changed files with 195 additions and 179 deletions
+6
View File
@@ -256,6 +256,12 @@ function clearableTextAreaSetup() {
}
function loadDicomViewer(images_to_load, annotations_to_load) {
// Skip loading old viewer if using new dv3d viewer (set on new_uploads page)
if (window.skipLoadDicomViewer) {
console.log("Skipping old loadDicomViewer - using dv3d instead");
return;
}
console.log("loadDicomViewer", images_to_load);
let single_dicom = document.getElementById("single-dicom-viewer");
if (single_dicom) {