Refactor code structure for improved readability and maintainability

This commit is contained in:
Ross
2026-05-11 11:06:51 +01:00
parent aaa3ee6313
commit d046b7a151
3 changed files with 1116 additions and 629 deletions
+6
View File
@@ -212,6 +212,12 @@ window.loadDicomViewerEvent = new Event('loadDicomViewerUrls');
window.addEventListener('loadDicomViewerUrls', function (e) {
console.log("LoadDicomViewer unls event", e.detail)
// 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;
}
loadDicomViewer(e.detail.images, e.detail.annotations);
}, false);