Fixes #1281, Telegraph.co.uk translator binds to incorrect URL
This commit is contained in:
parent
f92440cc12
commit
b2ff4ab16a
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
function detectWeb(doc, 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) {
|
||||
return "newspaperArticle";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue