Commit 38c6b97b authored by Mikaël Salson's avatar Mikaël Salson
Browse files

segmenter_page.js: Testing if a variable is defined

We need to be more verbose to test for variable definition
parent ed2e0113
......@@ -44,7 +44,7 @@ function displayError(error, rawError, exc) {
* @param {function} error - the function to call when an error occurs.
**/
function requestVidjilFile(sequences, callback, error) {
var urlController = config && config.segmenter_address
var urlController = (typeof config != 'undefined' && typeof config.segmenter_address != 'undefined')
? config.segmenter_address
: DEFAULT_SEGMENTER_ADDRESS;
var dataToSend = new FormData();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment