Browse Source

Use configuration-specified base path with standalone viewer if it exists (fixes #188).

pull/234/head
Matthew Petroff 8 years ago
parent
commit
63e032288a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/standalone/standalone.js

+ 2
- 1
src/standalone/standalone.js View File

@@ -62,7 +62,8 @@ function parseURLParameters() {
var responseMap = JSON.parse(request.responseText); var responseMap = JSON.parse(request.responseText);


// Set JSON file location // Set JSON file location
responseMap.basePath = configFromURL.config.substring(0, configFromURL.config.lastIndexOf('/')+1);
if (responseMap.basePath === undefined)
responseMap.basePath = configFromURL.config.substring(0, configFromURL.config.lastIndexOf('/')+1);


// Merge options // Merge options
for (var key in responseMap) { for (var key in responseMap) {


Loading…
Cancel
Save