Update http server endpoint

This commit is contained in:
Adomas Venčkauskas 2016-09-29 16:21:37 +03:00
parent 8208ece9df
commit d3ca13930d

View file

@ -89,7 +89,7 @@ Zotero.Server.Connector.GetTranslators.prototype = {
// Translator data
var me = this;
if(data.url) {
Zotero.Translators.getWebTranslatorsForLocation(data.url).then(function(data) {
Zotero.Translators.getWebTranslatorsForLocation(data.url, data.rootUrl).then(function(data) {
sendResponseCallback(200, "application/json",
JSON.stringify(me._serializeTranslators(data[0])));
});