From cdeaa2b2576b724cee1dce468df5a868cc0d8ba4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 11 Aug 2009 02:26:47 +0000 Subject: [PATCH] Don't run detectWeb() on debug output --- chrome/content/zotero/browser.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index fce82cda8..40e7f9d78 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -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