Don't count main browser in browser count debug output in createHiddenBrowser()

This commit is contained in:
Dan Stillman 2009-08-09 08:31:21 +00:00
parent 3f17420405
commit a806f09023

View file

@ -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;
}