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); }