From 1a087c7243965b1e1741217e252624657821f453 Mon Sep 17 00:00:00 2001 From: Pratik Borsadiya Date: Sat, 8 Dec 2018 13:52:10 +0530 Subject: [PATCH] Fix an issue with multiple parameters not working after webpack build --- package.json | 2 +- src/js/services/rpc/helpers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 86907be..e048461 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "webpack -d --watch --progress & node node-server", "build": "webpack -p --progress", - "analyze": "webpack --profile --json > stats.json && webpack-bundle-analyzer stats.json ./build -p 9999", + "analyze": "webpack -p --profile --json > stats.json && webpack-bundle-analyzer stats.json ./docs -p 9999", "format": "prettier -l --write \"**/*{js,scss}\" " }, "repository": { diff --git a/src/js/services/rpc/helpers.js b/src/js/services/rpc/helpers.js index 1e867c0..1dec496 100644 --- a/src/js/services/rpc/helpers.js +++ b/src/js/services/rpc/helpers.js @@ -29,7 +29,7 @@ export default angular var uriSettings = _.cloneDeep(settings); _.each(uri, function(uri_element) { if (uri_element.startsWith("--")) { - uri_options = uri_element.split(/--|=(.*)/); + var uri_options = uri_element.split(/--|=(.*)/); if (uri_options.length > 2) { uriSettings[uri_options[2]] = uri_options[3] || "true"; }