fix(config): Stop crashes if window.config is not defined when script-tag viewer is loaded

This commit is contained in:
Erik Ziegler committed 2019-07-29 14:42:21 +02:00
1 parent c5f532159b
commit 02c732aa15
3 files changed
+3 -7

No files matched your search

+1 -5
View File
@@ -25,12 +25,11 @@
<div id="root"></div>
<script src="/dist/index.umd.js" crossorigin></script>
<script>
window.config = {
// default: '/'
routerBasename: '/',
// default: ''
relativeWebWorkerScriptsPath: '',
servers: {
dicomWeb: [
{
@@ -45,10 +44,7 @@
],
},
}
</script>
<script src="/dist/index.umd.js" crossorigin></script>
<script>
window.OHIFStandaloneViewer.installViewer(window.config);
</script>
</body>