From ad31d74355c6168d3bbccceb8bcbfbc2c20ca4d6 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sun, 12 Feb 2012 16:49:49 +0100 Subject: [PATCH] Set site.pageURL so the log prints correctly show where the failure was Signed-off-by: Antonio Ospite --- direct_download_links.user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/direct_download_links.user.js b/direct_download_links.user.js index bd8e32a..6fa53ed 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -146,6 +146,7 @@ function getElementByXPath(query, root) { * @return: null on error, true on success */ function direct_download_link_add(pageURL, site) { + site.pageURL = pageURL var element = getElementByXPath(site.urlContainerXPath); if (!element) { DDL_log('DirectDL (' + site.pageURL + '): Cannot find the element ' + site.urlContainerXPath + ' containing the URL.'); -- 2.1.4