Commit 0e39d067 authored by Armand Bour's avatar Armand Bour Committed by Mikaël Salson
Browse files

Use config value in segmenter page

Uses a value defined in the configuration file (conf.js) instead of a
hard-coded value.
parent b6db799d
var DEFAULT_SEGMENTER_ADDRESS = 'https://dev.vidjil.org/vidjil/segmenter';
var model;
var segmenter;
var scatter;
......@@ -43,7 +44,9 @@ function displayError(error, rawError, exc) {
* @param {function} error - the function to call when an error occurs.
**/
function requestVidjilFile(sequences, callback, error) {
var urlController = 'https://dev.vidjil.org/vidjil/segmenter';
var urlController = config && config.segmenter_address
? config.segmenter_address
: DEFAULT_SEGMENTER_ADDRESS;
var dataToSend = new FormData();
dataToSend.append('sequences', sequences);
......
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