diff --git a/js/services/rpc/helpers.js b/js/services/rpc/helpers.js index b983672..b4ee00f 100644 --- a/js/services/rpc/helpers.js +++ b/js/services/rpc/helpers.js @@ -15,11 +15,12 @@ angular.module('webui.services.rpc.helpers', [ _.each(uris, function(uri) { uri_parsed = []; // parse options passed in the URIs. E.g. http://ex1.com/f1.jpg --out=image.jpg --check-integrity + var uriSettings = _.cloneDeep(settings); _.each(uri, function(uri_element) { if (uri_element.startsWith('--')) { uri_options = uri_element.split(/--|=(.*)/); if (uri_options.length > 2) { - settings[uri_options[2]] = uri_options[3] || 'true'; + uriSettings[uri_options[2]] = uri_options[3] || 'true'; } } else { @@ -27,7 +28,7 @@ angular.module('webui.services.rpc.helpers', [ } }); // passing true to batch all the addUri calls - rpc.once('addUri', [uri_parsed, settings], cb, true); + rpc.once('addUri', [uri_parsed, uriSettings], cb, true); }); // now dispatch all addUri syscalls