From a806f09023b56c05f8162f438b2d310974a67f74 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 9 Aug 2009 08:31:21 +0000 Subject: [PATCH] Don't count main browser in browser count debug output in createHiddenBrowser() --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 557c63bf6e..db155e1d11 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -2361,7 +2361,7 @@ Zotero.Browser = new function() { hiddenBrowser.docShell.allowMetaRedirects = false; hiddenBrowser.docShell.allowPlugins = false; Zotero.debug("created hidden browser (" - + win.document.getElementsByTagName('browser').length + ")"); + + (win.document.getElementsByTagName('browser').length - 1) + ")"); return hiddenBrowser; }