From e82968304fcb6b3f203bb015dfae7c56009d2cc8 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 19 Feb 2011 00:58:08 +0000 Subject: [PATCH] fix sync icon spinning in Zotero tab --- chrome/content/zotero/xpcom/sync.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index 3586717c4..a38ca7f87 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -815,8 +815,9 @@ Zotero.Sync.Runner = new function () { while (enumerator.hasMoreElements()) { var win = enumerator.getNext(); - var warning = win.document.getElementById('zotero-tb-sync-warning'); - var icon = win.document.getElementById('zotero-tb-sync'); + if(!win.ZoteroPane) continue; + var warning = win.ZoteroPane.document.getElementById('zotero-tb-sync-warning'); + var icon = win.ZoteroPane.document.getElementById('zotero-tb-sync'); if (status == 'warning' || status == 'error') { icon.setAttribute('status', '');