Fix error in browser.js when displaying pages through custom protocol handler
This commit is contained in:
parent
7e23e1d3cc
commit
f503693da9
|
@ -299,14 +299,17 @@ var Zotero_Browser = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore blacklisted domains
|
// ignore blacklisted domains
|
||||||
if(doc.domain) {
|
try {
|
||||||
for each(var blacklistedURL in _blacklist) {
|
if(doc.domain) {
|
||||||
if(doc.domain.substr(doc.domain.length-blacklistedURL.length) == blacklistedURL) {
|
for each(var blacklistedURL in _blacklist) {
|
||||||
Zotero.debug("Ignoring blacklisted URL "+doc.location);
|
if(doc.domain.substr(doc.domain.length-blacklistedURL.length) == blacklistedURL) {
|
||||||
return;
|
Zotero.debug("Ignoring blacklisted URL "+doc.location);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Figure out what browser this contentDocument is associated with
|
// Figure out what browser this contentDocument is associated with
|
||||||
|
|
Loading…
Reference in New Issue
Block a user