Report automaticSnapshots pref to connector.

Part of zotero/zotero-connectors#151
This commit is contained in:
Adomas Venčkauskas 2017-07-21 11:36:36 +03:00
parent 39a8e8fb0c
commit 40c84ecbc0

View File

@ -827,16 +827,16 @@ Zotero.Server.Connector.Ping.prototype = {
Zotero.QuickCopy.lastActiveURL = req.data.activeURL;
}
let response = {
prefs: {
automaticSnapshots: Zotero.Prefs.get('automaticSnapshots')
}
};
if (Zotero.QuickCopy.hasSiteSettings()) {
let response = {
prefs: {
reportActiveURL: true
}
};
return [200, 'application/json', JSON.stringify(response)];
response.prefs.reportActiveURL = true;
}
return [200, 'text/plain', ''];
return [200, 'application/json', JSON.stringify(response)];
}
}
}