www

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

commit fabf801fdbc27d949ffc809e4cf2421e0e7ddf49
parent 499da5ca3d0a1e0ad640f0d66a6fffe3ea898d73
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  3 Nov 2016 17:34:00 -0400

Fix some locate engines (e.g., Google Scholar)

Diffstat:
Mchrome/content/zotero/xpcom/locateManager.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/locateManager.js b/chrome/content/zotero/xpcom/locateManager.js @@ -428,9 +428,9 @@ Zotero.LocateManager = new function() { if(responseType && responseType !== "text/html") { throw "LocateManager supports only responseType text/html"; } - - if(item.toArray) { - item = item.toArray(); + + if (item.toJSON) { + item = item.toJSON(); } var itemAsOpenURL = Zotero.OpenURL.createContextObject(item, "1.0", true);