From 2b6d24bc75a963fdf5a309ad0d61331fd2d5475f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 9 Aug 2018 04:37:00 -0400 Subject: [PATCH] Only show "Find Available PDF" in dev builds --- chrome/content/zotero/lookup.js | 2 +- chrome/content/zotero/zoteroPane.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index a9f30a6b8f..c6371b1ef7 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -72,7 +72,7 @@ var Zotero_Lookup = new function () { if (Zotero.Prefs.get('downloadAssociatedFiles') && !newItems.find(x => x.isImportedAttachment()) // TEMP: Limit to dev builds - && (Zotero.version.includes('beta') || Zotero.version.includes('SOURCE'))) { + && Zotero.isDevBuild) { try { yield Zotero.Attachments.addAvailablePDF(newItems[0]); } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index ca4f76756a..bf6848d363 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -2881,7 +2881,8 @@ var ZoteroPane = new function() } } - if (canFindPDF) { + // TEMP: Limit to dev builds + if (canFindPDF && Zotero.isDevBuild) { show.push(m.findPDF, m.sep3); } @@ -2940,7 +2941,8 @@ var ZoteroPane = new function() show.push(m.addNote, m.addAttachments, m.sep2); } - if (Zotero.Utilities.Internal.canFindPDFForItem(item)) { + // TEMP: Limit to dev builds + if (Zotero.Attachments.canFindPDFForItem(item) && Zotero.isDevBuild) { show.push(m.findPDF, m.sep3); }