Fixes #1281, Telegraph.co.uk translator binds to incorrect URL

This commit is contained in:
Dan Stillman 2009-01-08 08:11:05 +00:00
parent f92440cc12
commit b2ff4ab16a

View file

@ -13,7 +13,7 @@
function detectWeb(doc, url) { function detectWeb(doc, url) {
Zotero.debug("detectWeb URL= "+ url); Zotero.debug("detectWeb URL= "+ url);
var result = doc.evaluate('html/head/meta[@name = "article-id"]', doc, null, XPathResult.ANY_TYPE, null); var result = doc.evaluate('html/head/meta[@name = "article-id"]', doc, null, XPathResult.ANY_TYPE, null).iterateNext();
if (result) { if (result) {
return "newspaperArticle"; return "newspaperArticle";
} }