Recognize application/xhtml+xml as snapshot
This commit is contained in:
parent
3054a554be
commit
abe266d74b
|
@ -336,7 +336,9 @@ Zotero.Translate.ItemSaver.prototype = {
|
||||||
// Determine whether to save an attachment
|
// Determine whether to save an attachment
|
||||||
if(attachment.snapshot !== false) {
|
if(attachment.snapshot !== false) {
|
||||||
if(attachment.document
|
if(attachment.document
|
||||||
|| (attachment.mimeType && attachment.mimeType == "text/html")) {
|
|| (attachment.mimeType &&
|
||||||
|
(attachment.mimeType === "text/html"
|
||||||
|
|| attachment.mimeType == "application/xhtml+xml"))) {
|
||||||
if(!Zotero.Prefs.get("automaticSnapshots")) return;
|
if(!Zotero.Prefs.get("automaticSnapshots")) return;
|
||||||
} else {
|
} else {
|
||||||
if(!Zotero.Prefs.get("downloadAssociatedFiles")) return;
|
if(!Zotero.Prefs.get("downloadAssociatedFiles")) return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user