in paramedic-plugin/paramedic.js [79:94]
Paramedic.prototype.loadParamedicServerUrl = function () {
try {
// attempt to synchronously load medic config
var xhr = new XMLHttpRequest();
xhr.open("GET", "../medic.json", false);
xhr.send(null);
var cfg = JSON.parse(xhr.responseText);
return cfg.logurl || PARAMEDIC_SERVER_DEFAULT_URL;
} catch (ex) {
console.log('Unable to load paramedic server url: ' + ex);
}
return PARAMEDIC_SERVER_DEFAULT_URL;
};