Fix error in browser.js when displaying pages through custom protocol handler
This commit is contained in:
parent
7e23e1d3cc
commit
f503693da9
|
@ -299,6 +299,7 @@ var Zotero_Browser = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore blacklisted domains
|
// ignore blacklisted domains
|
||||||
|
try {
|
||||||
if(doc.domain) {
|
if(doc.domain) {
|
||||||
for each(var blacklistedURL in _blacklist) {
|
for each(var blacklistedURL in _blacklist) {
|
||||||
if(doc.domain.substr(doc.domain.length-blacklistedURL.length) == blacklistedURL) {
|
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
|
// Figure out what browser this contentDocument is associated with
|
||||||
var browser;
|
var browser;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user