Fix error saving snapshots of files not handled natively by Firefox (except PDFs)
This commit is contained in:
parent
ba4caa7c86
commit
70b10ea320
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ Zotero.Attachments = new function(){
|
|||
wbp.progressListener = new Zotero.WebProgressFinishListener(function(){
|
||||
try {
|
||||
var str = Zotero.File.getSample(file);
|
||||
if (Zotero.MIME.sniffForMIMEType(str) != 'application/pdf') {
|
||||
if (mimeType == 'application/pdf' &&
|
||||
Zotero.MIME.sniffForMIMEType(str) != 'application/pdf') {
|
||||
Zotero.debug("Downloaded PDF did not have MIME type "
|
||||
+ "'application/pdf' in Attachments.importFromURL()", 2);
|
||||
var item = Zotero.Items.get(itemID);
|
||||
|
|
Loading…
Add table
Reference in a new issue