www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ac3cf03922c7362bd6c566ec2d2907352abf1eb4
parent dd5132e10576cdb71151758eb05fe475c53d4049
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 12 Jan 2014 16:25:08 -0800

Merge pull request #438 from aurimasv/documentURI

Use documentURI/URL instead of location.href.
Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -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; }