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,6 +299,7 @@ var Zotero_Browser = new function() {
}
// ignore blacklisted domains
try {
if(doc.domain) {
for each(var blacklistedURL in _blacklist) {
if(doc.domain.substr(doc.domain.length-blacklistedURL.length) == blacklistedURL) {
@ -308,6 +309,8 @@ var Zotero_Browser = new function() {
}
}
}
catch (e) {}
}
// Figure out what browser this contentDocument is associated with
var browser;