diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 85d1d027e9..3851c13fda 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -1386,6 +1386,11 @@ Zotero.Utilities = { return '<> ' + obj; } + // Don't descend into global object cache for data objects + if (Zotero.isClient && typeof obj == 'object' && obj instanceof Zotero.DataObject) { + maxLevel = 1; + } + // More complex dump with indentation for objects if (level === undefined) { level = 0;