From 40c84ecbc0069f087c14c8f317f576aba1aa970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 21 Jul 2017 11:36:36 +0300 Subject: [PATCH] Report automaticSnapshots pref to connector. Part of zotero/zotero-connectors#151 --- chrome/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 index 8fd018ac7..391578cb6 100644 --- 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)]; } } }