diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index a9d8d7fba8..38df20e4b1 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -1762,7 +1762,7 @@ Zotero.Attachments = new function(){ } // If DOI resolves directly to a PDF, save it to disk - if (contentType == 'application/pdf') { + if (contentType.startsWith('application/pdf')) { Zotero.debug("URL resolves directly to PDF"); await Zotero.File.putContentsAsync(path, blob); await _enforcePDF(path);