Don't hang if Zotero.debug() is called on a window

This commit is contained in:
Dan Stillman 2016-02-03 01:19:44 -05:00
parent 9c2a7a9e77
commit 7474b31e96

View File

@ -1393,7 +1393,8 @@ Zotero.Utilities = {
// Only dump single level for nsIDOMNode objects (including document)
if (Zotero.isFx && !Zotero.isBookmarklet
&& obj instanceof Components.interfaces.nsIDOMNode
&& (obj instanceof Components.interfaces.nsIDOMNode
|| obj instanceof Components.interfaces.nsIDOMWindow)
) {
level = maxLevel;
}