Don't run detectWeb() on debug output

This commit is contained in:
Dan Stillman 2009-08-11 02:26:47 +00:00
parent 67f2d0b3d5
commit cdeaa2b257

View File

@ -69,6 +69,10 @@ var Zotero_Browser = new function() {
"ad.yieldmanager.com" "ad.yieldmanager.com"
]; ];
var _locationBlacklist = [
"zotero://debug/"
];
var tools = { var tools = {
'zotero-annotate-tb-add':{ 'zotero-annotate-tb-add':{
cursor:"pointer", cursor:"pointer",
@ -338,6 +342,13 @@ var Zotero_Browser = new function() {
catch (e) {} catch (e) {}
} }
try {
if (_locationBlacklist.indexOf(doc.location.href) != -1) {
return;
}
}
catch (e) {}
// Figure out what browser this contentDocument is associated with // Figure out what browser this contentDocument is associated with
var browser; var browser;
for(var i=0; i<this.tabbrowser.browsers.length; i++) { for(var i=0; i<this.tabbrowser.browsers.length; i++) {