Merge pull request #438 from aurimasv/documentURI

Use documentURI/URL instead of location.href.
This commit is contained in:
Simon Kornblith 2014-01-12 16:25:08 -08:00
commit ac3cf03922

View file

@ -132,7 +132,7 @@ Zotero.Translate.Sandbox = {
var nAttachments = attachments.length;
for(var j=0; j<nAttachments; j++) {
if(attachments[j].document) {
attachments[j].url = attachments[j].document.location.href;
attachments[j].url = attachments[j].document.documentURI || attachments[j].document.URL;
attachments[j].mimeType = "text/html";
delete attachments[j].document;
}