From 869fdf61aec0f0f62a060671d1d11a45010aa8e7 Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Sun, 18 Jan 2015 10:41:17 -0600 Subject: [PATCH] Make sure that there's always a title for a given URL E.g. https://read.amazon.co.uk/?asin=XXXXXXXXX was resulting in a blank title --- chrome/content/zotero/xpcom/attachments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 89c2005f5..3655784f6 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -457,7 +457,8 @@ Zotero.Attachments = new function(){ title = dir[dir.length - 2]; } } - else { + + if (!title) { title = url; } }