Recognize application/xhtml+xml as snapshot

This commit is contained in:
Simon Kornblith 2013-04-07 21:14:31 -04:00
parent 3054a554be
commit abe266d74b

View File

@ -336,7 +336,9 @@ Zotero.Translate.ItemSaver.prototype = {
// Determine whether to save an attachment
if(attachment.snapshot !== false) {
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;
} else {
if(!Zotero.Prefs.get("downloadAssociatedFiles")) return;