From 7904bd233cec710257f289c579caa1ea74cfde65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20Hu=C3=9F?= Date: Mon, 29 May 2017 14:20:17 +0200 Subject: [PATCH] Set basePath correctly when the config location is specified as url parameter and config does not contain a basePath --- src/standalone/standalone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/standalone/standalone.js b/src/standalone/standalone.js index c5523eb..b0c8a89 100644 --- a/src/standalone/standalone.js +++ b/src/standalone/standalone.js @@ -66,7 +66,7 @@ function parseURLParameters() { // Set JSON file location if (responseMap.basePath === undefined) - responseMap.basePath = configFromURL.config.substring(0, configFromURL.config.lastIndexOf('/')+1); + responseMap.basePath = configFromURL.config.substring(0, configFromURL.config.lastIndexOf('/')); // Merge options for (var key in responseMap) {