Don't run detectWeb() on debug output
This commit is contained in:
parent
67f2d0b3d5
commit
cdeaa2b257
|
@ -69,6 +69,10 @@ var Zotero_Browser = new function() {
|
|||
"ad.yieldmanager.com"
|
||||
];
|
||||
|
||||
var _locationBlacklist = [
|
||||
"zotero://debug/"
|
||||
];
|
||||
|
||||
var tools = {
|
||||
'zotero-annotate-tb-add':{
|
||||
cursor:"pointer",
|
||||
|
@ -338,6 +342,13 @@ var Zotero_Browser = new function() {
|
|||
catch (e) {}
|
||||
}
|
||||
|
||||
try {
|
||||
if (_locationBlacklist.indexOf(doc.location.href) != -1) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
// Figure out what browser this contentDocument is associated with
|
||||
var browser;
|
||||
for(var i=0; i<this.tabbrowser.browsers.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user