www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit cdeaa2b2576b724cee1dce468df5a868cc0d8ba4
parent 67f2d0b3d5e510734a9bda1d4ddae8d56d8c4f96
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 11 Aug 2009 02:26:47 +0000

Don't run detectWeb() on debug output


Diffstat:
Mchrome/content/zotero/browser.js | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git 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<this.tabbrowser.browsers.length; i++) {