commit 6cf11f083bd0ae8784735bdc042c88ea280d7817 parent ac24ffe63665123479c8cd3c29197a9f36c85c83 Author: Adomas VenĨkauskas <adomas.ven@gmail.com> Date: Wed, 25 Apr 2018 15:41:22 +0300 Add a sendToBack connector endpoint for macOS integration window management Diffstat:
| M | chrome/content/zotero/xpcom/connector/server_connectorIntegration.js | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/connector/server_connectorIntegration.js b/chrome/content/zotero/xpcom/connector/server_connectorIntegration.js @@ -70,3 +70,14 @@ Zotero.Server.Endpoints['/connector/document/respond'].prototype = { Zotero.HTTPIntegrationClient.sendResponse = sendResponse; } }; + +// For managing macOS integration and progress window focus +Zotero.Server.Endpoints['/connector/sendToBack'] = function() {}; +Zotero.Server.Endpoints['/connector/sendToBack'].prototype = { + supportedMethods: ["POST"], + supportedDataTypes: ["application/json"], + permitBookmarklet: true, + init: function() { + Zotero.Utilities.Internal.sendToBack(); + }, +};