Merge pull request #438 from aurimasv/documentURI
Use documentURI/URL instead of location.href.
This commit is contained in:
commit
ac3cf03922
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue