www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 40c84ecbc0069f087c14c8f317f576aba1aa970d
parent 39a8e8fb0c34e87d012471fa005d3dea58e0201d
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Fri, 21 Jul 2017 11:36:36 +0300

Report automaticSnapshots pref to connector.

Part of zotero/zotero-connectors#151

Diffstat:
Mchrome/content/zotero/xpcom/server_connector.js | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js @@ -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)]; } } }