diff Applications/StoneWebViewer/WebApplication/app.js @ 1713:aec45e0b2528

configuration option "DicomWebRoot"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2020 17:09:46 +0100
parents 673c163e1b3e
children a878e807cd96
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js	Mon Nov 30 16:49:04 2020 +0100
+++ b/Applications/StoneWebViewer/WebApplication/app.js	Mon Nov 30 17:09:46 2020 +0100
@@ -1020,7 +1020,8 @@
 
 window.addEventListener('StoneInitialized', function() {
   stone.Setup(Module);
-  stone.SetOrthancRoot('..', true);
+  stone.SetDicomWebRoot(app.globalConfiguration.DicomWebRoot,
+                        true /* assume "/rendered" is available in DICOMweb (could be a configuration option) */);
   stone.SetSoftwareRendering(localStorage.settingSoftwareRendering == '1');
   console.warn('Stone properly initialized');