Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebApplication/app.js @ 1700:f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Nov 2020 10:55:21 +0100 |
parents | 0598c87e1e88 |
children | b5a8bf32d969 |
comparison
equal
deleted
inserted
replaced
1699:0598c87e1e88 | 1700:f1bd464dc3e1 |
---|---|
859 | 859 |
860 //app.modalWarning = true; | 860 //app.modalWarning = true; |
861 | 861 |
862 axios.get(CONFIGURATION_SOURCE) | 862 axios.get(CONFIGURATION_SOURCE) |
863 .then(function(response) { | 863 .then(function(response) { |
864 app.globalConfiguration = ParseJsonWithComments(response.data); | 864 app.globalConfiguration = ParseJsonWithComments(response.data) ['StoneWebViewer']; |
865 | |
866 if (app.globalConfiguration === undefined) { | |
867 console.warn('Empty configuration file'); | |
868 app.globalConfiguration = {}; | |
869 } | |
865 | 870 |
866 // Option 1: Loading script using plain HTML | 871 // Option 1: Loading script using plain HTML |
867 | 872 |
868 /* | 873 /* |
869 var script = document.createElement('script'); | 874 var script = document.createElement('script'); |