Fix error in browser.js when displaying pages through custom protocol handler

This commit is contained in:
Dan Stillman 2007-08-01 18:21:08 +00:00
parent 7e23e1d3cc
commit f503693da9

View File

@ -299,14 +299,17 @@ var Zotero_Browser = new function() {
}
// ignore blacklisted domains
if(doc.domain) {
for each(var blacklistedURL in _blacklist) {
if(doc.domain.substr(doc.domain.length-blacklistedURL.length) == blacklistedURL) {
Zotero.debug("Ignoring blacklisted URL "+doc.location);
return;
try {
if(doc.domain) {
for each(var blacklistedURL in _blacklist) {
if(doc.domain.substr(doc.domain.length-blacklistedURL.length) == blacklistedURL) {
Zotero.debug("Ignoring blacklisted URL "+doc.location);
return;
}
}
}
}
catch (e) {}
}
// Figure out what browser this contentDocument is associated with